Malicious code in golan125-homepage-test (npm)
Description
The golan125-homepage-test npm package version 1.0.0 contains a homepage field with a JavaScript-based XSS probe designed to test registry or UI frontend sanitization. The package itself does not execute harmful code on installation or runtime and does not perform network operations. The malicious aspect targets web interfaces that render the homepage field as clickable links without proper sanitization, potentially leading to cross-site scripting in those interfaces.
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 golan125-homepage-test package (version 1.0.0) includes a homepage field set to 'javascript:alert(document.domain)', which acts as an XSS probe targeting npm registry or UI frontends that unsafely render homepage URLs as clickable links. The package contains no lifecycle scripts or network activity and exports an empty object, meaning it does not harm the installer's environment. The threat is limited to the web UI rendering context of package metadata, not the package consumers or their systems.
Potential Impact
This issue could lead to cross-site scripting (XSS) vulnerabilities in npm registry or frontend web interfaces that display the homepage field without proper sanitization. It does not affect the security of systems installing or requiring the package, as the package code itself is benign. The impact is confined to the user interface layer of package registries or tools that render this metadata unsafely.
Mitigation Recommendations
No direct patch or fix is applicable to the package itself since it is a security research test and does not contain harmful install-time code. Mitigation requires registry and UI frontend maintainers to implement proper sanitization and validation of homepage URLs to prevent execution of JavaScript code embedded in metadata fields. Package consumers do not need to take action as installing or requiring this package does not pose a risk.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10897
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-6p3c-6jvh-3pg8"]
- Ecosystems
- ["npm"]
Threat ID: 6a96f318acd9273b49e49601
Added to database: 09/01/2026, 15:45:28 UTC
Last enriched: 09/08/2026, 10:38:36 UTC
Last updated: 10/01/2026, 22:42:42 UTC
Views: 26
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.