CVE-2021-23784
MEDIUM 6.1CVSS 3.1Cross-site Scripting in tempura
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.
- Published
- 3 Nov 2021
- Last modified
- 8 Jul 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-w4v7-hwx7-9929SNYK-JS-TEMPURA-1569633
- Sources
- NVDJSONOSV GHSA-w4v7-hwx7-9929JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | tempura_project | tempuracpe:2.3:a:tempura_project:tempura:*:*:*:*:*:*:*:* |
< 0.4.0 | 0.4.0 |
| OSV | npm | tempura | < 0.4.0 | 0.4.0 |
References
- 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://snyk.io/vuln/SNYK-JS-TEMPURA-1569633 · Exploit, Mitigation, Patch, Third Party Advisory, VDB Entry, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-23784 · ADVISORY
- https://github.com/lukeed/tempura · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 3 Nov 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 8 Nov 2021)