Malicious code in @salem_jalal/osc-components (npm)
The npm package @salem_jalal/osc-components version 1981.17.7 contains malicious code that exfiltrates sensitive information. Its postinstall script sends host identifiers to a remote server over unencrypted HTTP. Additionally, when loaded in a browser context, it harvests cookies, localStorage data, the current URL, and user agent details, sending them with credentials to the same remote server. The package impersonates another namespace (@dx-ui) to facilitate dependency confusion attacks.
AI Analysis
Technical Summary
The @salem_jalal/osc-components package version 1981.17.7 includes a postinstall hook that transmits installer host data such as hostname, OS platform/architecture, username, working directory, Node version, npm registry environment, and DNS server list to a remote HTTP endpoint. The main module contains an immediately invoked function expression (IIFE) that, when executed in a browser environment, collects document.cookie, all localStorage entries, the current URL, and userAgent string, sending these with credentials included to the same remote server. The package falsely identifies itself internally as @dx-ui/osc-components, indicating a dependency confusion or namespace impersonation attack. The malicious code runs unconditionally on installation and at runtime in browser contexts.
Potential Impact
Sensitive host and user environment information is exfiltrated during package installation, potentially exposing system identifiers and environment details. When used in browser contexts, the package leaks cookies, localStorage data, and browsing context information with credentials, risking user session hijacking and privacy breaches. The namespace impersonation may cause confusion or unintended dependency resolution, increasing the risk of supply chain compromise.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately remove and avoid using the @salem_jalal/osc-components package version 1981.17.7. Audit dependencies for this package and any that may have pulled it in transitively. Consider using package integrity verification and strict namespace controls to prevent dependency confusion attacks. Monitor for updates or advisories from trusted sources regarding remediation.
Malicious code in @salem_jalal/osc-components (npm)
Description
The npm package @salem_jalal/osc-components version 1981.17.7 contains malicious code that exfiltrates sensitive information. Its postinstall script sends host identifiers to a remote server over unencrypted HTTP. Additionally, when loaded in a browser context, it harvests cookies, localStorage data, the current URL, and user agent details, sending them with credentials to the same remote server. The package impersonates another namespace (@dx-ui) to facilitate dependency confusion attacks.
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 @salem_jalal/osc-components package version 1981.17.7 includes a postinstall hook that transmits installer host data such as hostname, OS platform/architecture, username, working directory, Node version, npm registry environment, and DNS server list to a remote HTTP endpoint. The main module contains an immediately invoked function expression (IIFE) that, when executed in a browser environment, collects document.cookie, all localStorage entries, the current URL, and userAgent string, sending these with credentials included to the same remote server. The package falsely identifies itself internally as @dx-ui/osc-components, indicating a dependency confusion or namespace impersonation attack. The malicious code runs unconditionally on installation and at runtime in browser contexts.
Potential Impact
Sensitive host and user environment information is exfiltrated during package installation, potentially exposing system identifiers and environment details. When used in browser contexts, the package leaks cookies, localStorage data, and browsing context information with credentials, risking user session hijacking and privacy breaches. The namespace impersonation may cause confusion or unintended dependency resolution, increasing the risk of supply chain compromise.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately remove and avoid using the @salem_jalal/osc-components package version 1981.17.7. Audit dependencies for this package and any that may have pulled it in transitively. Consider using package integrity verification and strict namespace controls to prevent dependency confusion attacks. Monitor for updates or advisories from trusted sources regarding remediation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6479
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a3ef7e227e9c79719032106
Added to database: 06/26/2026, 22:06:26 UTC
Last enriched: 06/26/2026, 22:42:46 UTC
Last updated: 07/26/2026, 12:56:00 UTC
Views: 53
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.