{"id":"CVE-2021-23447","aliases":["EUVD-2021-2159","GHSA-5f38-9jw2-6r6h","SNYK-JS-TEDDY-1579557"],"status":"published","title":"Cross-site Scripting (XSS)","description":"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).","severity":{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.01128,"percentile":0.66617,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79","CWE-843"],"published":"2021-10-07T16:40:12Z","modified":"2026-10-20T10:54:34Z","fixes":[{"ecosystem":"npm","package":"teddy","fixed_in":["0.5.9"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"teddy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.9"}]}]},{"source":"osv","ecosystem":"npm","package":"teddy","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.5.9"}]}]}],"products":[{"vendor":"teddy_project","product":"teddy"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-TEDDY-1579557","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://github.com/rooseveltframework/teddy/pull/518","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/rooseveltframework/teddy/releases/tag/0.5.9","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23447","tags":["advisory"]},{"url":"https://github.com/rooseveltframework/teddy/commit/64c556717b4879bf8d4c30067cf6e70d899a3dc0","tags":["web"]},{"url":"https://github.com/advisories/GHSA-5f38-9jw2-6r6h"},{"url":"https://github.com/rooseveltframework/teddy","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-23447","title":"Cross-site Scripting (XSS)","description":"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).","status":"published","published":"2021-10-07T16:40:12.628Z","modified":"2024-09-16T22:20:45.34Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium","assessor":"cna"}],"updated_at":"2026-11-02T14:33:00.488332Z"}],"euvd":[{"id":"EUVD-2021-2159","description":"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).","status":"published","published":"2021-10-07T16:40:12Z","modified":"2024-09-16T22:20:45Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-03T00:55:03.975609Z"}],"ghsa":[{"id":"GHSA-5f38-9jw2-6r6h","title":"Cross-site Scripting in teddy","description":"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).","status":"published","published":"2021-10-12T16:22:04Z","modified":"2023-02-01T05:06:12Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79","CWE-843"],"updated_at":"2026-11-02T14:36:38.281533Z"}],"nvd":[{"id":"CVE-2021-23447","description":"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).","status":"published","published":"2021-10-07T17:15:08.087Z","modified":"2026-06-17T03:38:46.8Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium","assessor":"secondary"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-843"],"updated_at":"2026-11-02T14:06:59.689345Z"}],"osv":[{"id":"CVE-2021-23447","description":"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).","status":"published","published":"2021-10-07T17:15:08.087Z","modified":"2026-10-20T10:54:34.222804968Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:18.778776Z"},{"id":"GHSA-5f38-9jw2-6r6h","title":"Cross-site Scripting in teddy","description":"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).","status":"published","published":"2021-10-12T16:22:04Z","modified":"2026-07-08T06:49:51.584010565Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79","CWE-843"],"updated_at":"2026-11-02T15:46:38.213481Z"}]}}
