Symlink Following Affecting wasm-pack package, versions <0.14.0-r4


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.01% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-WOLFILATEST-WASMPACK-15809207
  • published29 Mar 2026
  • disclosed20 Mar 2026

Introduced: 20 Mar 2026

NewCVE-2026-33056  (opens in a new tab)
CWE-61  (opens in a new tab)

How to fix?

Upgrade Wolfi wasm-pack to version 0.14.0-r4 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream wasm-pack package and not the wasm-pack package as distributed by Wolfi. See How to fix? for Wolfi relevant fixed versions and status.

tar-rs is a tar archive reading/writing library for Rust. In versions 0.4.44 and below, when unpacking a tar archive, the tar crate's unpack_dir function uses fs::metadata() to check whether a path that already exists is a directory. Because fs::metadata() follows symbolic links, a crafted tarball containing a symlink entry followed by a directory entry with the same name causes the crate to treat the symlink target as a valid existing directory — and subsequently apply chmod to it. This allows an attacker to modify the permissions of arbitrary directories outside the extraction root. This issue has been fixed in version 0.4.45.

CVSS Base Scores

version 3.1