[security] extractArchive lacks the tar-safety hardening present in download-artifact #3

Closed
opened 2026-06-23 20:14:55 +00:00 by stephen · 0 comments
Owner

Autonomous security audit finding (HIGH, currently latent).

src/lib/artifact-tar.js:84-90 does a raw tar -xf with no zip-slip / symlink / size-cap protection. The equivalent download-artifact code (download-impl.js :92-408) has that hardening; upload's copy drifted and lacks it. It's exported + tested as if safe but not called in src/ yet — fix before it's wired into an extraction path. Port the download-side entry validation.

Autonomous security audit finding (HIGH, currently latent). `src/lib/artifact-tar.js:84-90` does a raw `tar -xf` with no zip-slip / symlink / size-cap protection. The equivalent download-artifact code (`download-impl.js` :92-408) has that hardening; upload's copy drifted and lacks it. It's exported + tested as if safe but not called in src/ yet — fix before it's wired into an extraction path. Port the download-side entry validation.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rasterstate/upload-artifact-action#3
No description provided.