# CVE-2021-43309: ReDoS in uri-template-lite URI.expand function

- Severity: Medium 5.9 (CVSS:3.1, scored by JFROG) `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
- Likelihood of exploitation in the next 30 days (EPSS): 1.02%, higher than 64% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-08-24T15:48:36.000Z
- Modified: 2026-06-17T04:10:49.810Z
- Also known as: GHSA-chw2-6c7r-37p7
- Weaknesses: CWE-697, CWE-1333
- Assigned by: JFROG

## Description

An exponential ReDoS (Regular Expression Denial of Service) can be triggered in the uri-template-lite npm package, when an attacker is able to supply arbitrary input to the "URI.expand" method

(As written by CVE List.)

## Affected

- uri-template-lite uri-template-lite: before 22.9.0
- uri-template-lite (npm): before 22.9.0
- litejs uri-template-lite: no versions given

## Every score

- JFROG: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://research.jfrog.com/vulnerabilities/uri-template-lite-redos-xray-211351/> (exploit, third-party-advisory)
- <https://github.com/litejs/uri-template-lite/compare/v22.1.0...v22.9.0>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-43309> (advisory)
- <https://github.com/litejs/uri-template-lite/commit/cbeec2b2a275d819fb534137a155df14729706f8> (web)
- <https://github.com/litejs/uri-template-lite> (package)
- <https://github.com/litejs/uri-template-lite/commits/v22.9.0> (web)
- <https://research.jfrog.com/vulnerabilities/uri-template-lite-redos-xray-211351> (web)

## Sources

- CVE List: [CVE-2021-43309](https://www.cve.org/CVERecord?id=CVE-2021-43309), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-chw2-6c7r-37p7](https://github.com/advisories/GHSA-chw2-6c7r-37p7), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-43309](https://nvd.nist.gov/vuln/detail/CVE-2021-43309), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-43309 · Whole record: https://cve.day/CVE-2021-43309.json · Rebuilt by cve.day 2026-11-25T22:24:37.039Z
