X.js:面向Node.js污点式漏洞的实时基准测试集
X.js: A Live Benchmark for Node.js Taint-Style Vulnerabilities
AI总结:
X.js是面向Node.js污点式漏洞的实时基准测试集,含1159个验证漏洞,可用于分析该类漏洞的演变,发现其多出现于大型包中。
摘要:
npm包中的JavaScript漏洞对Node.js生态系统构成重大风险,越来越多的研究致力于检测、利用和缓解这类漏洞。研究和评估这些工作需要最新的真实漏洞集合,但最常用的数据集在2022年就停止记录漏洞了。我们提出X.js,一个覆盖代码注入、命令注入、原型污染和路径遍历的真实Node.js污点式漏洞实时基准测试集。X.js基于截至2026年年中通过GitHub Advisory Database收集的1738条安全建议构建,为每个漏洞配备了精确的源点和汇点位置、经过验证的可利用漏洞及其执行跟踪,以及(若有)该包的补丁版本。X.js支持长期可复现性和增长:依赖项被镜像到自托管注册表中,以防止包从生态系统中移除,专用基础设施会为新报告的漏洞生成并验证利用代码。当前版本包含针对965个包的1159个经过验证的利用代码。利用X.js,我们分析了Node.js污点式漏洞的频率、结构和复杂性随时间的演变情况,发现这类漏洞越来越多地出现在大型包中:受影响包的中位数代码行数从2021-2022年的约250行增长到2026年的6100行。
英文摘要:
JavaScript vulnerabilities in npm packages pose a significant risk to the Node$.$js ecosystem, and a growing body of work aims to detect, exploit, and mitigate them. Studying and evaluating this work requires up-to-date collections of real vulnerabilities, yet the most commonly used datasets stop recording vulnerabilities in 2022. We present X$.$js, a live benchmark of real-world Node$.$js taint-style vulnerabilities covering code and command injection, prototype pollution, and path traversal. Built from 1,738 advisories collected through mid-2026, primarily from the GitHub Advisory Database, X$.$js pairs each vulnerability with precise source and sink locations, a validated executable exploit and its execution trace, and, when available, a patched version of the package. X$.$js supports long-term reproducibility and growth: dependencies are mirrored in a self-hosted registry to guard against package removal from the ecosystem, and dedicated infrastructure generates and validates exploits for newly reported vulnerabilities. The current release contains 1,159 validated exploits for 965 packages. Using X$.$js, we characterize how the frequency, structure, and complexity of Node$.$js taint-style vulnerabilities have evolved over time. We find that these vulnerabilities are increasingly reported in large packages: the median vulnerable package grew from roughly 250 LoC in 2021--2022 to 6,100 LoC in 2026.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。