{"id":"CVE-2021-23447","aliases":["CVE-2021-23447","GHSA-5f38-9jw2-6r6h","SNYK-JS-TEDDY-1579557"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-site Scripting (XSS)","summary":"This affects the package teddy before 0.5.9. A type confusion vulnerability can be used to bypass input sanitization when the model content is an array (instead of a string).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"This affects the package teddy before 0.5.9. A type confusion vulnerability can be used to bypass input sanitization when the model content is an array (instead of a string).","source":"cvelist"},{"lang":"en","text":"Teddy is a readable and easy to learn templating language. This affects the package teddy before 0.5.9. A type confusion vulnerability can be used to bypass input sanitization when the model content is an array (instead of a string).","format":"markdown","source":"ghsa"},{"lang":"es","text":"Esto afecta al paquete teddy versiones anteriores a 0.5.9. Una vulnerabilidad de confusión de tipos puede ser usada para omitir el saneo de entradas cuando el contenido del modelo es un array (en lugar de una cadena)","source":"nvd"}],"published":"2021-10-07T16:40:12.628Z","modified":"2026-07-08T06:49:51.584Z","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","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","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4,"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","CWE-843"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"0.5.9","status":"affected"}],"product":"teddy","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.5.9"}],"ecosystem":"npm","package":"teddy","purl":"pkg:npm/teddy","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.5.9"}],"vendor":"teddy_project","product":"teddy","cpe":"cpe:2.3:a:teddy_project:teddy:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-TEDDY-1579557","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rooseveltframework/teddy/pull/518","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rooseveltframework/teddy/releases/tag/0.5.9","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-23447","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/rooseveltframework/teddy/commit/64c556717b4879bf8d4c30067cf6e70d899a3dc0","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/rooseveltframework/teddy","tags":["package"],"sources":["ghsa"]}],"credits":["Alessio Della Libera of Snyk Research Team"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-23447","url":"https://www.cve.org/CVERecord?id=CVE-2021-23447","licence":"CVE Terms of Use","modified":"2024-09-16T22:20:45.340Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5f38-9jw2-6r6h","url":"https://github.com/advisories/GHSA-5f38-9jw2-6r6h","licence":"CC-BY-4.0","modified":"2026-07-08T06:49:51.584Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-23447","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23447","licence":"Public domain","modified":"2026-06-17T03:38:46.800Z"}],"updatedAt":"2026-11-25T22:58:04.371Z","epss":{"score":0.01128,"percentile":0.66098,"date":"2026-11-30T12:00:22.000Z"}}