npm · Malicious package advisory
Malwarejson-schema-to-typescript-example
GHSA-g2vj-mf7j-vvxw
Malicious code in json-schema-to-typescript-example (npm)
Details
**Severity:** Critical **Affected versions:** `> 0` ## Source: amazon-inspector (148a68690ce752d3b4d67269d4cdd05066913f5abbc344c7f7bf9ac550af794b) The package json-schema-to-typescript-example was found to contain malicious code. ## Source: ossf-package-analysis (29c9044838880e6ed3b20a78b1ef44a7a69b66904b04d00f863f444dccbb0bd7) The OpenSSF Package Analysis project identified 'json-schema-to-typescript-example' @ 12.0.0 (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/ce5aebcf135d19fafa94c24995d7ad8fac9d024d/osv/malicious/npm/json-schema-to-typescript-example/MAL-2025-49246.json)) **References:** - https://github.com/ossf/malicious-packages/blob/ce5aebcf135d19fafa94c24995d7ad8fac9d024d/osv/malicious/npm/json-schema-to-typescript-example/MAL-2025-49246.json - https://github.com/advisories/GHSA-g2vj-mf7j-vvxw
Compromised versions (1)
- > 0
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.