GHSA-gf8q-jrpm-jvxq

Suggest an improvement
Source
https://github.com/advisories/GHSA-gf8q-jrpm-jvxq
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/01/GHSA-gf8q-jrpm-jvxq/GHSA-gf8q-jrpm-jvxq.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-gf8q-jrpm-jvxq
Downstream
Published
2022-01-08T00:22:02Z
Modified
2022-01-07T22:20:43Z
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

For more information

If you have any questions or comments about this advisory:

Database specific
{
    "cwe_ids":  [
        "CWE-601"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2022-01-07T22:20:43Z",
    "nvd_published_at":  null,
    "severity":  "LOW"
}
References

Affected packages

npm / node-forge

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.0.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/01/GHSA-gf8q-jrpm-jvxq/GHSA-gf8q-jrpm-jvxq.json"