Malicious code in the-search (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (6f7901c35765e01f25defe0c4d489b8f320340b45968e89b9dafe5821b7561fd) The package's main entry ships a self-invoking browser payload that reads document.cookie, base64-encodes the value, and submits it via an auto-created hidden form POST to a hardcoded webhook.site endpoint (https://webhook.site/86b505ff-4280-459f-9b36-e765825c0ada). The package has no legitimate declared purpose consistent with this behavior; bundling this module into a web application causes visitor cookies to be sent to an attacker-controlled destination. The base64 wrapping around the JSON body is minor evasion to obscure the exfiltrated content in network logs.
AI Analysis
Technical Summary
The 'the-search' npm package (versions 1.0.0 and 1.0.1) includes a self-invoking browser payload that reads the document.cookie value from users visiting a web application that bundles this module. It base64-encodes the cookie data and submits it via a hidden form POST request to a hardcoded webhook.site URL controlled by an attacker. This malicious behavior is embedded directly in the package's main entry point, indicating the package is designed to steal user session cookies. The base64 encoding is a minor evasion technique to obscure the exfiltrated data in network traffic logs.
Potential Impact
Any web application that includes the affected versions of 'the-search' will cause visitor cookies to be sent to an attacker-controlled endpoint, potentially exposing sensitive session information and enabling session hijacking or unauthorized access. This compromises user privacy and application security.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately remove or avoid using 'the-search' versions 1.0.0 and 1.0.1. Review dependencies for this package and replace it with a trusted alternative. Monitor for updates from the package maintainer or npm advisory for any forthcoming fixes. Since this is a malicious package, do not attempt to use it in production environments.
Malicious code in the-search (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (6f7901c35765e01f25defe0c4d489b8f320340b45968e89b9dafe5821b7561fd) The package's main entry ships a self-invoking browser payload that reads document.cookie, base64-encodes the value, and submits it via an auto-created hidden form POST to a hardcoded webhook.site endpoint (https://webhook.site/86b505ff-4280-459f-9b36-e765825c0ada). The package has no legitimate declared purpose consistent with this behavior; bundling this module into a web application causes visitor cookies to be sent to an attacker-controlled destination. The base64 wrapping around the JSON body is minor evasion to obscure the exfiltrated content in network logs.
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 'the-search' npm package (versions 1.0.0 and 1.0.1) includes a self-invoking browser payload that reads the document.cookie value from users visiting a web application that bundles this module. It base64-encodes the cookie data and submits it via a hidden form POST request to a hardcoded webhook.site URL controlled by an attacker. This malicious behavior is embedded directly in the package's main entry point, indicating the package is designed to steal user session cookies. The base64 encoding is a minor evasion technique to obscure the exfiltrated data in network traffic logs.
Potential Impact
Any web application that includes the affected versions of 'the-search' will cause visitor cookies to be sent to an attacker-controlled endpoint, potentially exposing sensitive session information and enabling session hijacking or unauthorized access. This compromises user privacy and application security.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately remove or avoid using 'the-search' versions 1.0.0 and 1.0.1. Review dependencies for this package and replace it with a trusted alternative. Monitor for updates from the package maintainer or npm advisory for any forthcoming fixes. Since this is a malicious package, do not attempt to use it in production environments.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12810
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a73572fbf8831d53913cd40
Added to database: 08/05/2026, 15:30:55 UTC
Last enriched: 08/05/2026, 15:38:17 UTC
Last updated: 08/05/2026, 15:39:17 UTC
Views: 2
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.