{"id":"CVE-2021-23784","published":"2021-11-03T17:20:42Z","modified":"2024-09-17T01:45:32Z","title":"Cross-site Scripting (XSS)","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0126,"percentile":0.70317,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-TEMPURA-1569633","tags":["x_refsource_MISC"]},{"url":"https://github.com/lukeed/tempura/commit/58a5c3671e2f36b26810e77ead9e0dd471902f9b","tags":["x_refsource_MISC"]},{"url":"https://github.com/lukeed/tempura/releases/tag/v0.4.0","tags":["x_refsource_MISC"]}],"priority":{"score":17.8,"factors":[{"name":"EPSS percentile","points":14.06},{"name":"CVSS severity","points":3.78}]},"affectedVersions":[{"vendor":"n/a","product":"tempura","versions":[">= unspecified, < 0.4.0"]}],"affected":[{"ecosystem":"npm","package":"tempura","vulnerableRanges":["<0.4.0"],"patched":["0.4.0"],"from":["GHSA-w4v7-hwx7-9929"],"provenance":"source"}],"summary":{"text":"An attacker who can supply such input to the affected function can trigger cross-site scripting, though exploitation requires a user to interact with the crafted content.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:47:34Z"},"euvd":{"id":"EUVD-2021-2402","exploited":false,"provenance":"source"}}