# CVE-2021-23416: Cross-site Scripting (XSS)

- Severity: Medium 5.4 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P`
- 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): 0.79%, higher than 57% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-07-28T16:05:18.125Z
- Modified: 2026-06-17T03:38:43.410Z
- Also known as: GHSA-rqf8-8c89-mw29
- Weaknesses: CWE-79
- Assigned by: snyk

## Description

This affects all versions of package curly-bracket-parser. When used as a template library, it does not properly sanitize the user input.

(As written by CVE List.)

## Affected

- curly-bracket-parser: before unspecified
- curly-bracket-parser (npm): up to 1.0.2
- curly-bracket-parser_project curly-bracket-parser: no versions given

## Every score

- snyk: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://snyk.io/vuln/SNYK-JS-CURLYBRACKETPARSER-1297106> (exploit, third-party-advisory, web)
- <https://github.com/magynhard/curly-bracket-parser/blob/master/src/curly-bracket-parser/curly-bracket-parser.js%23L31> (broken-link, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-23416> (advisory)
- <https://github.com/magynhard/curly-bracket-parser> (package)
- <https://github.com/magynhard/curly-bracket-parser/blob/master/src/curly-bracket-parser/curly-bracket-parser.js#23L31> (web)

## Sources

- CVE List: [CVE-2021-23416](https://www.cve.org/CVERecord?id=CVE-2021-23416), CVE Terms of Use, modified 2024-09-17
- GitHub Advisory Database: [GHSA-rqf8-8c89-mw29](https://github.com/advisories/GHSA-rqf8-8c89-mw29), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-23416](https://nvd.nist.gov/vuln/detail/CVE-2021-23416), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-23416 · Whole record: https://cve.day/CVE-2021-23416.json · Rebuilt by cve.day 2026-11-25T22:58:02.879Z
