mal-2026-6144
Vulnerability from ossf_malicious_packages
-= Per source details. Do not edit below this line.=-
Source: amazon-inspector (95ac68a991ebaacd1aef772aa462ad53510471f9f4439659a6e685e877aa460e)
On require(), index.js (lines 70-77) fetches JSON from https://jsonkeeper.com/b/CI3HT, extracts the .cookie field from the response, and passes it to new Function.constructor('require', cookie)(require) — compiling and executing attacker-controlled JavaScript with full access to Node's require. jsonkeeper.com is an anonymous, mutable paste host: the operator can swap the payload at any time without republishing the package. Any installer (or downstream package) that imports runtime-query gives the author arbitrary code execution on their machine. The package's metadata (description claims a generic query framework, empty author, no repository/homepage) is a cover story — the only shipped code is the 70-line remote loader.
- CWE-506 - The product contains code that appears to be malicious in nature.
{
"affected": [
{
"database_specific": {
"cwes": [
{
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature.",
"name": "Embedded Malicious Code"
}
],
"indicators": {
"evidence_files": [
{
"path": "index.js",
"sha256": "920e5ec9b125b629de0b2aee2c040ac9602872ebf6838a9a9ee0eec8e738c8f3",
"tlsh": "0a41ddd924fa6125c1a3e1810f8fc409f22ae1173359cac5b99c53546fe07b8a7e2f5a"
},
{
"path": "package.json",
"sha256": "e062c9c73916a3ebd75aa51efd77518d7d258630b5c2b83f1ab43cfcba382af4",
"tlsh": "fcf0c934a940023306e802a258b0a0caf3d5df1f3a00384cd79f806950e6a36adbf79c"
}
],
"package_integrity": [
{
"filename": "runtime-query-1.6.6.tgz",
"hashes": {
"sha1": "ab46b32ddeaa452c970612435eb91d9a5e42211e",
"sha512_sri": "sha512-eJ7/mXy9rHPTwpt5sXVsPyeXfYWXoWlHoRns2f+OMV7kdLM/sWYT7C9EPYNjCoOuDDWiEZ2fbaghvbc6zqKEEg=="
}
}
]
}
},
"package": {
"ecosystem": "npm",
"name": "runtime-query"
},
"versions": [
"1.6.6"
]
}
],
"credits": [
{
"contact": [
"inspector-research@amazon.com"
],
"name": "Amazon Inspector",
"type": "FINDER"
}
],
"database_specific": {
"malicious-packages-origins": [
{
"id": "IN-MAL-2026-007037",
"import_time": "2026-06-18T23:09:38.864069257Z",
"modified_time": "2026-06-18T22:28:53Z",
"sha256": "95ac68a991ebaacd1aef772aa462ad53510471f9f4439659a6e685e877aa460e",
"source": "amazon-inspector",
"versions": [
"1.6.6"
]
}
]
},
"details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (95ac68a991ebaacd1aef772aa462ad53510471f9f4439659a6e685e877aa460e)\nOn require(), index.js (lines 70-77) fetches JSON from https://jsonkeeper.com/b/CI3HT, extracts the `.cookie` field from the response, and passes it to `new Function.constructor(\u0027require\u0027, cookie)(require)` \u2014 compiling and executing attacker-controlled JavaScript with full access to Node\u0027s `require`. jsonkeeper.com is an anonymous, mutable paste host: the operator can swap the payload at any time without republishing the package. Any installer (or downstream package) that imports runtime-query gives the author arbitrary code execution on their machine. The package\u0027s metadata (description claims a generic query framework, empty `author`, no repository/homepage) is a cover story \u2014 the only shipped code is the 70-line remote loader.\n",
"id": "MAL-2026-6144",
"modified": "2026-06-18T22:28:53Z",
"published": "2026-06-18T22:28:53Z",
"references": [
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/runtime-query/v/1.6.6"
}
],
"schema_version": "1.7.4",
"summary": "Malicious code in runtime-query (npm)"
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.