Security
Researchers Release Live Benchmark of Node.js Security Flaws Spanning Injection and Traversal Attacks
A new dataset tracks over 1,100 real-world vulnerabilities in npm packages, revealing that vulnerable code bases are growing significantly larger over time.
Researchers have introduced a comprehensive, continuously updated collection of genuine security vulnerabilities in the Node.js ecosystem—aiming to provide the security community with current data as existing benchmarks grow increasingly outdated. The new resource, X.js, consolidates nearly 1,800 real-world flaws documented through mid-2026, primarily drawing from the GitHub Advisory Database.
What the Benchmark Covers#
X.js focuses on taint-style vulnerabilities—exploitable pathways where untrusted input flows unsanitized to dangerous code—across three major attack vectors:
- Code injection – malicious code execution through unsanitized input
- Command injection – shell command execution via compromised parameters
- Prototype pollution – object prototype manipulation attacks
- Path traversal – unauthorized file system access
The current release documents 1,159 validated, executable exploits affecting 965 npm packages, each paired with precise source and sink locations, working proof-of-concept code, execution traces, and patched versions where available.
Why This Matters#
JavaScript security research has long relied on static vulnerability datasets that stopped being updated years ago. The field now had no reliable source for recent flaws—a gap that hampers development and evaluation of new detection and mitigation tools. By maintaining active data collection and automated exploit validation, X.js addresses this research blind spot.
Key Findings#
Analysis of the benchmark reveals troubling trends in how npm vulnerabilities have evolved. Vulnerable packages have grown dramatically in complexity: the median codebase containing a taint-style flaw mushroomed from roughly 250 lines of code in 2021–2022 to 6,100 lines by 2026—a sign that flaws are increasingly embedded in larger, more intricate libraries.
Infrastructure for Long-Term Reliability#
To prevent research data loss from package removal, X.js maintains its own mirrored registry hosting vulnerable packages. Dedicated automation continuously processes newly discovered vulnerabilities, generating fresh exploits and validating their functionality, ensuring the benchmark remains current.

