Malicious code in future-scripts (npm)
On October 10, 2026 (local time), boom() calls localStorage.setItem('key', i) 100,000,000 times in a synchronous loop, potentially freezing a browser page. In version 0.0.2, the exported getCommonDateInRanges() calls boom() before input validation; the bundled source map confirms this path. Version 0.0.3 retains boom() as a separate export but no longer calls it from getCommonDateInRanges(), so an explicit call is required. Version 0.0.1 does not contain this routine. This is a static finding; actual victim impact was not observed.
MAL-2026-17418
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:MAL-2026-17418
future-scripts
Source reference: /affected/0/package/name
- Affected versions
- 0.0.2
Source reference:
/affected/0/versions0.0.3Source reference:
/affected/0/versions - Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"package": {
"name": "future-scripts",
"purl": "pkg:npm/future-scripts",
"ecosystem": "npm"
},
"versions": [
"0.0.2",
"0.0.3"
],
"database_specific": {
"cwes": [
{
"name": "Uncontrolled Resource Consumption",
"cweId": "CWE-400",
"description": "The product does not properly control the allocation and maintenance of a limited resource."
},
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
}
],
"source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/future-scripts/MAL-2026-17418.json"
}
}
]Publisher severity
No explicit severity was provided.
- Event
- #59305 · Revision 1
- Added to Heist Feed
- Publisher date