Vulnerability Information
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
Vulnerability Title
pnpm: Virtual store linker path traversal via unvalidated depPath name in lockfileToDepGraph
Vulnerability Description
pnpm is a package manager. Prior to 10.34.5 and from 11.0.0 until 11.11.0, pnpm parses the package name from attacker-controlled pnpm-lock.yaml packages keys with dp.parse(depPath).name and uses it without validation in deps/graph-builder/src/lockfileToDepGraph.ts and pnpm11/deps/graph-builder/src/lockfileToDepGraph.ts. The name reaches path.join(modules, pkgName), storeController.importPackage, and pnpm11/lockfile/to-pnp/src/index.ts, allowing package contents to be written outside node_modules when a user runs pnpm install. When dangerouslyAllowAllBuilds or a matching allowBuilds entry permits lifecycle scripts, the escaped package can execute code with the user's privileges. This issue is fixed in versions 10.34.5 and 11.11.0.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Vulnerability Title
pnpm 路径遍历漏洞
Vulnerability Description
pnpm是pnpm团队开源的一款高效的JavaScript包管理器。 pnpm 10.34.5之前版本和11.0.0至11.11.0之前版本存在路径遍历漏洞,该漏洞源于解析攻击者控制的pnpm-lock.yaml包名后未进行验证,导致包内容可被写入node_modules目录之外,当允许生命周期脚本时,可能以用户权限执行代码。
CVSS Information
N/A
Vulnerability Type
N/A