{"id":"CVE-2021-23784","aliases":["CVE-2021-23784","GHSA-w4v7-hwx7-9929","SNYK-JS-TEMPURA-1569633"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-site Scripting (XSS)","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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Esto afecta al paquete tempura versiones anteriores a 0.4.0. Si la entrada a la función esc es de tipo objeto (es decir, una matriz) se devuelve sin ser escapada/saneada, conllevando una potencial vulnerabilidad de tipo Cross-Site Scripting","source":"nvd"}],"published":"2021-11-03T17:20:42.450Z","modified":"2026-07-08T06:50:00.199Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"0.4.0","status":"affected"}],"product":"tempura","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.4.0"}],"ecosystem":"npm","package":"tempura","purl":"pkg:npm/tempura","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.4.0"}],"vendor":"tempura_project","product":"tempura","cpe":"cpe:2.3:a:tempura_project:tempura:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-TEMPURA-1569633","tags":["exploit","mitigation","patch","third-party-advisory","vdb-entry","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/lukeed/tempura/commit/58a5c3671e2f36b26810e77ead9e0dd471902f9b","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/lukeed/tempura/releases/tag/v0.4.0","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23784","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/lukeed/tempura","tags":["package"],"sources":["ghsa"]}],"credits":["Alessio Della Libera of Snyk Research Team"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-23784","url":"https://www.cve.org/CVERecord?id=CVE-2021-23784","licence":"CVE Terms of Use","modified":"2024-09-17T01:45:32.116Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-w4v7-hwx7-9929","url":"https://github.com/advisories/GHSA-w4v7-hwx7-9929","licence":"CC-BY-4.0","modified":"2026-07-08T06:50:00.199Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-23784","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23784","licence":"Public domain","modified":"2026-06-17T03:38:52.943Z"}],"updatedAt":"2026-11-25T22:58:05.333Z","epss":{"score":0.0126,"percentile":0.70432,"date":"2026-12-01T12:00:22.000Z"}}