Node.js® is a free, open-source, cross-platform JavaScript runtime environment that lets developers create servers, web apps, command line tools and scripts.
Published By From Node.js News · 1 min read
SecurityNode.js Test CI Security Incident
On March 21, 2025, we received a security report via HackerOne (link restricted at time of writing), detailing a successful compromise of several Node.js test CI hosts.
According to the HackerOne report, the exploit proceeded as follows:
Upon review, we identified that the request-ci label step simplifies but is not required to carry out the attack. A similar attack could be used against the commit-queue label, thus potentially allowing an attacker to land an unauthorized code change.
The core issue stems from a Time-of-Check-Time-of-Use (TOCTOU) vulnerability between initiating a CI build and the moment the Jenkins job checks out the code. Previously, CI jobs used Git references ( refs/pull/<pr_id>/head ), which attackers can alter after triggering the CI.
This is an excerpt. The full article is published by Node.js News.
Answers to common questions regarding this article's topic, architecture, and practical applications.
Friday, 21 March 2025 : Report received on Hackerone. Initial triage confirmed the report as a genuine issue. The ability to start new Jenkins CI runs was restricted to prevent any further machine compromises. Monday, 24 March 2025: All compromised machines (totalling 24) were identified and removed from Jenkins (pending a complete rebuild). Initial attempts to evaluate all 140 jobs defined in our Jenkins instance for vulnerability. Work started
General
On March 21st, the Node.js project received a security report regarding our development infrastructure via our bug bounty program. We immediately restricted access while implementing corrective actions.
The reported issue did not impact the Node.js runtime and there is no risk to users of Node.js. No action by Node.js users is required. The development infrastructure is expected to be available to the community by April 15 or sooner. A full repor
General
In response to this security incident, the Node.js security team took measures to mitigate risks and secure the infrastructure. These targeted actions significantly strengthened the security posture of our CI infrastructure, preventing the recurrence of similar potential
intrusions and ensuring safe operations moving forward. The change we implemented now requires every pull request to be approved before running the Jenkins CI - or for collaborat
General
Over 300 volunteers maintain the Node.js project. Our processes aim to streamline CI initiation and verification of contributions across approximately 100 Jenkins runners spanning multiple operating systems and CPU architectures.
The existing CI system design anticipates potential compromises, recognizing the need to balance security with developer convenience.
General
On March 21, 2025, we received a security report via HackerOne (link restricted at time of writing), detailing a successful compromise of several Node.js test CI hosts. According to the HackerOne report, the exploit proceeded as follows: Upon review, we identified that the request-ci label step simplifies but is not required to carry out the attack. A similar attack could be used against the commit-queue label, thus potentially allowing an attack