Lune

ICSE2023Top-tier venue

SecBench.js: An Executable Security Benchmark Suite for Server-Side JavaScript

Masudul Hasan Masud Bhuiyan, Adithya Srinivas Parthasarathy, Nikos Vasilakis, Michael Pradel, Cristian-Alexandru Staicu

Abstract

NPM is the largest software ecosystem in the world, offering millions of free, reusable packages. In recent years, various security threats to packages published on npm have been reported, including vulnerabilities that affect millions of users. To continuously improve techniques for detecting vulnerabilities and mitigating attacks that exploit them, a reusable benchmark of vulnerabilities would be highly desirable. Ideally, such a benchmark should be realistic, come with executable exploits, and include fixes of vulnerabilities. Unfortunately, there currently is no such benchmark, forcing researchers to repeatedly develop their own evaluation datasets and making it difficult to compare techniques with each other. This paper presents SecBench.js,, the first comprehensive benchmark suite of vulnerabilities and executable exploits for npm. The benchmark comprises 600 vulnerabilities, which cover the five most common vulnerability classes for server-side JavaScript. Each vulnerability comes with a payload that exploits the vulnerability and an oracle that validates successful exploitation. SecBench.js, enables various applications, of which we explore three in this paper: (i) cross-checking SecBench.js, against public security advisories reveals 168 vulnerable versions in 19 packages that are mislabeled in the advisories; (ii) applying simple code transformations to the exploits in our suite helps identify flawed fixes of vulnerabilities; (iii) dynamically analyzing calls to common sink APIs, e.g., exec(), yields a ground truth of code locations for evaluating vulnerability detectors. Beyond providing a reusable benchmark to the community, our work identified 20 zero-day vulnerabilities, most of which are already acknowledged by practitioners.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

10 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • DyPyBench: A Benchmark of Executable Python Software cites LAVA: Large-Scale Automated Vulnerability Addition
  • SYNODE: Understanding and Automatically Preventing Injection Attacks on NODE.JS cites Freezing the Web: A Study of ReDoS Vulnerabilities in JavaScript-based Web Servers
  • Jack-in-the-box: An Empirical Study of JavaScript Bundling on the Web and its Security Implications cites SYNODE: Understanding and Automatically Preventing Injection Attacks on NODE.JS
  • Jack-in-the-box: An Empirical Study of JavaScript Bundling on the Web and its Security Implications cites Freezing the Web: A Study of ReDoS Vulnerabilities in JavaScript-based Web Servers
  • Jack-in-the-box: An Empirical Study of JavaScript Bundling on the Web and its Security Implications cites Small World with High Risks: A Study of Security Threats in the npm Ecosystem
  • Jack-in-the-box: An Empirical Study of JavaScript Bundling on the Web and its Security Implications cites A Qualitative Study of Dependency Management and Its Security Implications
  • PoCGen: Generating Proof-of-Concept Exploits for Vulnerabilities in Npm Packages cites Freezing the Web: A Study of ReDoS Vulnerabilities in JavaScript-based Web Servers
  • PoCGen: Generating Proof-of-Concept Exploits for Vulnerabilities in Npm Packages cites Small World with High Risks: A Study of Security Threats in the npm Ecosystem
  • PoCGen: Generating Proof-of-Concept Exploits for Vulnerabilities in Npm Packages cites Automated Exploit Generation for Node.js Packages
  • Small World with High Risks: A Study of Security Threats in the npm Ecosystem cites SYNODE: Understanding and Automatically Preventing Injection Attacks on NODE.JS
  • Small World with High Risks: A Study of Security Threats in the npm Ecosystem cites Freezing the Web: A Study of ReDoS Vulnerabilities in JavaScript-based Web Servers
  • Automated Exploit Generation for Node.js Packages cites SYNODE: Understanding and Automatically Preventing Injection Attacks on NODE.JS
  • Automated Exploit Generation for Node.js Packages cites Freezing the Web: A Study of ReDoS Vulnerabilities in JavaScript-based Web Servers
  • Automated Exploit Generation for Node.js Packages cites Efficient Static Vulnerability Analysis for JavaScript with Multiversion Dependency Graphs
  • Efficient Static Vulnerability Analysis for JavaScript with Multiversion Dependency Graphs cites SYNODE: Understanding and Automatically Preventing Injection Attacks on NODE.JS
  • Efficient Static Vulnerability Analysis for JavaScript with Multiversion Dependency Graphs cites Freezing the Web: A Study of ReDoS Vulnerabilities in JavaScript-based Web Servers
  • Efficient Static Vulnerability Analysis for JavaScript with Multiversion Dependency Graphs cites Small World with High Risks: A Study of Security Threats in the npm Ecosystem
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers10

  1. Efficient Static Vulnerability Analysis for JavaScript with Multiversion Dependency GraphsMafalda Ferreira, Miguel Monteiro, Tiago Brito, Miguel E. Coimbra et al.PLDI 2024 · 13 citations
  2. Jack-in-the-box: An Empirical Study of JavaScript Bundling on the Web and its Security ImplicationsJeremy Rack, Cristian-Alexandru StaicuCCS 2023 · 11 citations
  3. DyPyBench: A Benchmark of Executable Python SoftwareIslem Bouzenia, Bajaj Piyush Krishan, Michael PradelFSE 2024 · 8 citations
  4. Automated Exploit Generation for Node.js PackagesFilipe Marques, Mafalda Ferreira, André Nascimento, Miguel E. Coimbra et al.PLDI 2025 · 5 citations
  5. PoCGen: Generating Proof-of-Concept Exploits for Vulnerabilities in Npm PackagesDeniz Simsek, Aryaz Eghbali, Michael PradelFSE 2026 · 4 citations

Builds on23

  1. LAVA: Large-Scale Automated Vulnerability AdditionBrendan Dolan-Gavitt, Patrick Hulin, Engin Kirda, Tim Leek et al.S&P 2016 · 354 citations
  2. Small World with High Risks: A Study of Security Threats in the npm EcosystemMarkus Zimmermann, Cristian-Alexandru Staicu, Cam Tenny, Michael PradelUSENIX Security 2019 · 281 citations
  3. Freezing the Web: A Study of ReDoS Vulnerabilities in JavaScript-based Web ServersCristian-Alexandru Staicu, Michael PradelUSENIX Security 2018 · 125 citations
  4. SYNODE: Understanding and Automatically Preventing Injection Attacks on NODE.JSCristian-Alexandru Staicu, Michael Pradel, Benjamin LivshitsNDSS 2018 · 91 citations
  5. A Qualitative Study of Dependency Management and Its Security ImplicationsIvan Pashchenko, Duc-Ly Vu, Fabio MassacciCCS 2020 · 84 citations

Related papers

  1. "I wasn't sure if this is indeed a security risk": Data-driven Understanding of Security Issue Reporting in GitHub Repositories of Open Source npm PackagesRajdeep Ghosh, Shiladitya De, Mainack MondalUSENIX Security 2025
  2. Scaling JavaScript Abstract Interpretation to Detect and Exploit Node.js Taint-style VulnerabilityMingqing Kang, Yichao Xu, Song Li, Rigel Gjomemo et al.S&P 2023
  3. Extracting taint specifications for JavaScript librariesCristian-Alexandru Staicu, Martin Toldam Torp, Max Schäfer, Anders Møller et al.ICSE 2020 · 34 citations
  4. Bullseye: Detecting Prototype Pollution in NPM Packages with Proof of Concept ExploitsTariq Houis, Shaoqi Jiang, Mohammad Mannan, Amr YoussefNDSS 2026 · 2 citations
  5. From Noise to Signal: Precisely Identify Affected Packages of Known Vulnerabilities in npm EcosystemYingyuan Pu, Lingyun Ying, Yacong GuNDSS 2026 · 4 citations
Dusk over the sea between two cliffs drawn in fine vertical lines