What’s Vulnerable › Vulnerabilities
CVE-2021-23784: Cross-site Scripting (XSS)
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.3% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2021-11-03 · updated 2026-06-17
- Weakness: CWE-79
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.
Affected products
- tempura: before 0.4.0 — fixed in 0.4.0
How to fix
Upgrade to a fixed version: tempura 0.4.0. Check the vendor advisory for mitigations.
References
- https://github.com/lukeed/tempura/commit/58a5c3671e2f36b26810e77ead9e0dd471902f9b
- https://github.com/lukeed/tempura/releases/tag/v0.4.0
- https://snyk.io/vuln/SNYK-JS-TEMPURA-1569633
- https://github.com/lukeed/tempura/commit/58a5c3671e2f36b26810e77ead9e0dd471902f9b
- https://github.com/lukeed/tempura/releases/tag/v0.4.0
- https://snyk.io/vuln/SNYK-JS-TEMPURA-1569633
Get alerted when CVE-2021-23784 or the next vulnerability affects your stack