translate-base-font
Affected
- introduced
0(semver)
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: GHSA-grv5-7wp6-vw6h
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in translate-base-font (npm)
---
_-= Per source details. Do not edit below this line.=-_
Source: amazon-inspector (3b0c647653ce1698d15162d24ea22d9b060d770daf28277f3ce27a0040dda6dc)
The package presents itself as a CSS custom-property polyfill for font translation, but its actual behavior is a browser-side code-smuggling vector. payload.css ships ten --base-color-1..--base-color-10 custom properties whose values are hex-byte triplets; the file carries the literal marker Payload for vantamods.online and a __DOMAIN__ placeholder (hex 5f5f444f4d41494e5f5f). At runtime, translate.js reads those CSS variables from the DOM, concatenates the hex bytes into a string, substitutes __DOMAIN__ with the hex-decoded host vantamods.online (sourced from --primary-brand-color), and executes the resulting JavaScript with new ("").constructor.constructor(fromCharCode.apply(null, _b))() — i.e. a Function constructor invocation on attacker-controlled bytes. A hostname guard prevents execution on vantamods.online, localhost, and empty hostnames, so the smuggled code runs only on third-party sites that bundle or CDN-load this package. The advertised polyfill functionality is a cover story: any site shipping this dependency executes arbitrary JavaScript controlled by the maintainer of vantamods.online against every visitor, enabling session theft, credential capture, redirection, or arbitrary DOM manipulation in the site's origin.
Source: ghsa-malware (d0ae1970321abd04ddd957d3135ee1d2eb64acee031428fa8f3cbcb8c48504b0)
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Not rated by the source.
0 (semver)None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: OpenSSF Malicious Packages · Apache-2.0