GHSA-gf8q-jrpm-jvxq URL parsing in node-forge could lead to undesired behavior.

Not scored Published
Exploited in the wild
Not known
Fix
Available

What is GHSA-gf8q-jrpm-jvxq?

GHSA-gf8q-jrpm-jvxq is a vulnerability in node-forge, published on 8 Jan 2022.

Official description

Impact

The regex used for the forge.util.parseUrl API would not properly parse certain inputs resulting in a parsed data structure that could lead to undesired behavior.

Patches

forge.util.parseUrl and other very old related URL APIs were removed in 1.0.0 in favor of letting applications use the more modern WHATWG URL Standard API.

Workarounds

Ensure code does not directly or indirectly call forge.util.parseUrl with untrusted input.

References

For more information

If you have any questions or comments about this advisory:

Which versions are affected by GHSA-gf8q-jrpm-jvxq?

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-gf8q-jrpm-jvxq?

Upgrade node-forge to 1.0.0 or later.

Is GHSA-gf8q-jrpm-jvxq being exploited?

There is no known exploitation of GHSA-gf8q-jrpm-jvxq in the wild and no public exploit code.

Sources

Is GHSA-gf8q-jrpm-jvxq in your software?

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

Check your SBOMs for free