npm · Malicious package advisory
Malwarehast-util-to-babel-ast
GHSA-52v8-586p-3f2r
Malicious code in hast-util-to-babel-ast (npm)
Details
**Severity:** Critical **Affected versions:** `= 20.1.2` The package communicates with a domain associated with malicious activity.## Source: ossf-package-analysis (55816d77f51cc9fc5c5fc18491df2693e7be82d2c4865402a52a85af9f685300) The OpenSSF Package Analysis project identified 'hast-util-to-babel-ast' @ 20.1.2 (npm) as malicious. It is considered malicious because: - The package communicates with a domain associated with malicious activity. - The package executes one or more commands associated with malicious behavior. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/05b419acdcdd6e02782971da765f32a22a1aed8e/osv/malicious/npm/hast-util-to-babel-ast/MAL-2025-6264.json)) **References:** - https://github.com/ossf/malicious-packages/blob/05b419acdcdd6e02782971da765f32a22a1aed8e/osv/malicious/npm/hast-util-to-babel-ast/MAL-2025-6264.json - https://github.com/advisories/GHSA-52v8-586p-3f2r
Compromised versions (1)
- = 20.1.2
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.