# GHSA-86p3-4gfq-38f2: Denial of Service in url-relative

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2019-06-05T14:10:34.000Z
- Modified: 2021-08-04T21:31:03.000Z
- Weaknesses: CWE-400

## Description

All versions of `url-relative` are vulnerable to Denial of Service. If the values `to` and `from` are equal, the function hangs and never returns. This may cause a Denial of Service.


## Recommendation

No fix is currently available. Consider using an alternative module until a fix is made available.

(As written by GitHub Advisory Database.)

## Affected

- url-relative (npm): up to 1.0.0

## References

- <https://github.com/junosuarez/url-relative/issues/3> (web)
- <https://snyk.io/vuln/SNYK-JS-URLRELATIVE-173691> (web)
- <https://www.npmjs.com/advisories/783> (web)

## Sources

- GitHub Advisory Database: [GHSA-86p3-4gfq-38f2](https://github.com/advisories/GHSA-86p3-4gfq-38f2), CC-BY-4.0, modified 2021-08-04

---

Page: https://cve.day/GHSA-86p3-4gfq-38f2 · Whole record: https://cve.day/GHSA-86p3-4gfq-38f2.json · Rebuilt by cve.day 2026-11-25T22:56:44.675Z
