GHSA-5rrq-pxf6-6jx5 Prototype Pollution in node-forge debug API.

Not scored Published

Prototype pollution in the undocumented debug API of node-forge allows attackers to manipulate object prototypes if untrusted input is processed.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-5rrq-pxf6-6jx5?

GHSA-5rrq-pxf6-6jx5 is a vulnerability in node-forge, published on 8 Jan 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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

For more information

If you have any questions or comments about this advisory:

Which versions are affected by GHSA-5rrq-pxf6-6jx5?

2 open source packages ship an affected version, including node-forge.

PackageAffectedFixed in
node-forge npmAll versions1.0.0
node-forge npmAll versions1.0.0

How do I fix GHSA-5rrq-pxf6-6jx5?

Upgrade node-forge to 1.0.0 or later.

Is GHSA-5rrq-pxf6-6jx5 being exploited?

There is no known exploitation of GHSA-5rrq-pxf6-6jx5 in the wild and no public exploit code.

Sources

Is GHSA-5rrq-pxf6-6jx5 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free