# GHSA-wxgw-qj99-44c2: Prototype Pollution in node-forge util.setPath API

- Severity: Low (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2022-01-08T00:22:40.000Z
- Modified: 2022-01-07T22:20:50.000Z

## Description

### Impact
`forge.util.setPath` had a potential prototype pollution issue if called with untrusted keys. This API was not used by forge itself.

### Patches
The `forge.util.setPath` API and related functions were removed in 0.10.0.

### Workarounds
Don't call `forge.util.setPath` directly or indirectly with untrusted keys.

### References
- https://security.snyk.io/vuln/SNYK-JS-NODEFORGE-598677
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-7720

### For more information
If you have any questions or comments about this advisory:
* Open an issue in [forge](https://github.com/digitalbazaar/forge).
* Email us at support@digitalbazaar.com.

(As written by GitHub Advisory Database.)

## Affected

- node-forge (npm): before 0.10.0

## References

- <https://github.com/digitalbazaar/forge/security/advisories/GHSA-wxgw-qj99-44c2> (web)

## Sources

- GitHub Advisory Database: [GHSA-wxgw-qj99-44c2](https://github.com/advisories/GHSA-wxgw-qj99-44c2), CC-BY-4.0, modified 2022-01-07

---

Page: https://cve.day/GHSA-wxgw-qj99-44c2 · Whole record: https://cve.day/GHSA-wxgw-qj99-44c2.json · Rebuilt by cve.day 2026-11-25T22:56:46.927Z
