CVE-2021-23784 json
Cross-site Scripting (XSS)
published 2021-11-03 5 y ago modified 2026-07-08 4 mo ago also GHSA-w4v7-hwx7-9929 , EUVD-2021-2402
- cvss
- 5.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.3%
- EPSS 1.3% chance of exploitation in 30 days, percentile 69%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm tempura 0.4.0
- n/a tempura 0.4.0
Exploit prediction
1.26% chance of exploitation in the next 30 days, higher than 69% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- snyk.io https://snyk.io/vuln/SNYK-JS-TEMPURA-1569633 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P |
| CNA | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | tempura | <0.4.0 |
0.4.0 |
Affected products
- n/a tempura
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/lukeed/tempura/commit/58a5c3671e2f36b26810e77ead9e0dd471902f9b
web, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-JS-TEMPURA-1569633
web, exploit, mitigation, patch, third-party-advisory, vdb-entry
-
github.com
/lukeed/tempura/releases/tag/v0.4.0
web, release-notes, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-23784
advisory
-
github.com
/lukeed/tempura
package
Sources
- CVE List CVE-2021-23784
- GitHub Advisory GHSA-w4v7-hwx7-9929
- NVD CVE-2021-23784
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.