Malicious code in transform-es2015-sticky-regex (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (eadf76ef8e123f9ce50c2910c71912996a3d079a91076ffed8d29830a1687ae1) package.json declares both a dependency and a devDependency on 'transform-es2015-sticky-regex' pointing at http://pack.nppacks.com/npm/transform-es2015-sticky-regex. On `npm install`, npm fetches whatever tarball that plain-HTTP, non-registry host currently serves and installs it into node_modules with no version pin and no integrity hash — the maintainer of pack.nppacks.com can substitute arbitrary code at any time and it will land in the installer's dependency tree on the next install. The package name is also a namespace-confusion of the well-known 'babel-plugin-transform-es2015-sticky-regex' (Babel plugin naming convention prefixes 'babel-plugin-'); the shipped index.js does not implement the sticky-regex transform but a DefinePlugin-style identifier replacer, and a source comment states the package is 'for Security Research Testing Purpose'. Additional network-capable dependencies (axios, node-fetch, ws) are declared but unused by the shipped code, pre-staging network primitives for whatever the swapped tarball chooses to import.
AI Analysis
Technical Summary
The 'transform-es2015-sticky-regex' npm package at version 6.24.3 is a malicious package that abuses a non-secure HTTP source (http://pack.nppacks.com) for its tarball, enabling the remote maintainer to replace the package contents arbitrarily. This package name is a namespace confusion of the legitimate 'babel-plugin-transform-es2015-sticky-regex'. The shipped code does not perform the advertised sticky regex transform but acts as an identifier replacer with a comment indicating it is for security research testing. It also pre-stages network dependencies (axios, node-fetch, ws) which are unused but could be exploited if the package is swapped with malicious code. This creates a supply chain risk where installing this package could introduce arbitrary malicious code into a project.
Potential Impact
Installing this package version can lead to arbitrary code execution due to the ability of the remote maintainer to substitute malicious code at any time. The package's misleading name increases the risk of accidental inclusion in projects expecting the legitimate Babel plugin. The presence of network-capable dependencies suggests potential for network-based malicious activities if exploited.
Mitigation Recommendations
No official patch or fix is available for this malicious package. Users should avoid installing 'transform-es2015-sticky-regex' version 6.24.3 from untrusted sources, especially those served over plain HTTP. Replace any usage of this package with the legitimate 'babel-plugin-transform-es2015-sticky-regex' from the official npm registry. Review and remove this package from existing projects to eliminate the risk.
Malicious code in transform-es2015-sticky-regex (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (eadf76ef8e123f9ce50c2910c71912996a3d079a91076ffed8d29830a1687ae1) package.json declares both a dependency and a devDependency on 'transform-es2015-sticky-regex' pointing at http://pack.nppacks.com/npm/transform-es2015-sticky-regex. On `npm install`, npm fetches whatever tarball that plain-HTTP, non-registry host currently serves and installs it into node_modules with no version pin and no integrity hash — the maintainer of pack.nppacks.com can substitute arbitrary code at any time and it will land in the installer's dependency tree on the next install. The package name is also a namespace-confusion of the well-known 'babel-plugin-transform-es2015-sticky-regex' (Babel plugin naming convention prefixes 'babel-plugin-'); the shipped index.js does not implement the sticky-regex transform but a DefinePlugin-style identifier replacer, and a source comment states the package is 'for Security Research Testing Purpose'. Additional network-capable dependencies (axios, node-fetch, ws) are declared but unused by the shipped code, pre-staging network primitives for whatever the swapped tarball chooses to import.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The 'transform-es2015-sticky-regex' npm package at version 6.24.3 is a malicious package that abuses a non-secure HTTP source (http://pack.nppacks.com) for its tarball, enabling the remote maintainer to replace the package contents arbitrarily. This package name is a namespace confusion of the legitimate 'babel-plugin-transform-es2015-sticky-regex'. The shipped code does not perform the advertised sticky regex transform but acts as an identifier replacer with a comment indicating it is for security research testing. It also pre-stages network dependencies (axios, node-fetch, ws) which are unused but could be exploited if the package is swapped with malicious code. This creates a supply chain risk where installing this package could introduce arbitrary malicious code into a project.
Potential Impact
Installing this package version can lead to arbitrary code execution due to the ability of the remote maintainer to substitute malicious code at any time. The package's misleading name increases the risk of accidental inclusion in projects expecting the legitimate Babel plugin. The presence of network-capable dependencies suggests potential for network-based malicious activities if exploited.
Mitigation Recommendations
No official patch or fix is available for this malicious package. Users should avoid installing 'transform-es2015-sticky-regex' version 6.24.3 from untrusted sources, especially those served over plain HTTP. Replace any usage of this package with the legitimate 'babel-plugin-transform-es2015-sticky-regex' from the official npm registry. Review and remove this package from existing projects to eliminate the risk.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10136
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a520ee868715ace4391d2f4
Added to database: 07/11/2026, 09:37:44 UTC
Last enriched: 07/11/2026, 10:08:17 UTC
Last updated: 07/24/2026, 07:59:47 UTC
Views: 20
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.