Vulnerability · Published Nov 3, 2021 · Assigned by snyk
CVE-2021-23784Cross-site Scripting (XSS)
Medium 5.4
In plain English
A medium-severity security flaw in tempura. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.3% (higher than 70% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)5.4Medium
Exploit odds (30 days)1.3%top 30.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | tempura | 0.4.0 | GHSA-w4v7-hwx7-9929 |
Affected products (as reported)
References
- https://snyk.io/vuln/SNYK-JS-TEMPURA-1569633 x_refsource_MISC
- https://github.com/lukeed/tempura/commit/58a5c3671e2f36b26810e77ead9e0dd471902f9b x_refsource_MISC
- https://github.com/lukeed/tempura/releases/tag/v0.4.0 x_refsource_MISC