# GHSA-5rrq-pxf6-6jx5: Prototype Pollution in node-forge debug 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:42.000Z
- Modified: 2022-01-07T22:20:53.000Z
- Weaknesses: CWE-1321

## Description

### Impact
The `forge.debug` API had a potential prototype pollution issue if called with untrusted input. The API was only used for internal debug purposes in a safe way and never documented or advertised.  It is suspected that uses of this API, if any exist, would likely not have used untrusted inputs in a vulnerable way.

### Patches
The `forge.debug` API and related functions were removed in 1.0.0.

### Workarounds
Don't use the `forge.debug` API directly or indirectly with untrusted input.

### References
- https://www.huntr.dev/bounties/1-npm-node-forge/

### 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 1.0.0

## References

- <https://github.com/digitalbazaar/forge/security/advisories/GHSA-5rrq-pxf6-6jx5> (web)
- <https://github.com/digitalbazaar/forge> (package)

## Sources

- GitHub Advisory Database: [GHSA-5rrq-pxf6-6jx5](https://github.com/advisories/GHSA-5rrq-pxf6-6jx5), CC-BY-4.0, modified 2022-01-07

---

Page: https://cve.day/GHSA-5rrq-pxf6-6jx5 · Whole record: https://cve.day/GHSA-5rrq-pxf6-6jx5.json · Rebuilt by cve.day 2026-11-25T22:56:44.238Z
