# CVE-2021-23784: 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): 1.26%, higher than 70% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-11-03T17:20:42.450Z
- Modified: 2026-07-08T06:50:00.199Z
- Also known as: GHSA-w4v7-hwx7-9929, SNYK-JS-TEMPURA-1569633
- Weaknesses: CWE-79
- Assigned by: snyk

## Description

This affects the package tempura before 0.4.0. If the input to the esc function is of type object (i.e an array) it is returned without being escaped/sanitized, leading to a potential Cross-Site Scripting vulnerability.

(As written by CVE List.)

## Affected

- tempura: from unspecified before 0.4.0
- tempura (npm): before 0.4.0
- tempura_project tempura: before 0.4.0

## 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 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/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-TEMPURA-1569633> (exploit, mitigation, patch, third-party-advisory, vdb-entry, web)
- <https://github.com/lukeed/tempura/commit/58a5c3671e2f36b26810e77ead9e0dd471902f9b> (patch, third-party-advisory, web)
- <https://github.com/lukeed/tempura/releases/tag/v0.4.0> (release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-23784> (advisory)
- <https://github.com/lukeed/tempura> (package)

## Sources

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

---

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