Advisory

GHSA-gf8q-jrpm-jvxq

Also known as: None

Summary

URL parsing in node-forge could lead to undesired behavior.

Details

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

  • https://www.huntr.dev/bounties/41852c50-3c6d-4703-8c55-4db27164a4ae/

For more information
If you have any questions or comments about this advisory:

Severity

Low Basis: The source's own band: LOW

Dates

Published
2022-01-08 00:22 UTC
Modified
2022-01-07 22:20 UTC

Affected packages and fixes

node-forge

npm · All systems

Affected

  • introduced 0, fixed 1.0.0 (semver)

Fixed versions

1.0.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences