{"id":"GHSA-5f38-9jw2-6r6h","summary":"Cross-site Scripting in teddy","details":"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).","aliases":["CVE-2021-23447","SNYK-JS-TEDDY-1579557"],"modified":"2026-07-08T06:49:51.584010565Z","published":"2021-10-12T16:22:04Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2021-10-08T21:52:26Z","nvd_published_at":"2021-10-07T17:15:00Z","cwe_ids":["CWE-79","CWE-843"],"severity":"MODERATE"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23447"},{"type":"WEB","url":"https://github.com/rooseveltframework/teddy/pull/518"},{"type":"WEB","url":"https://github.com/rooseveltframework/teddy/commit/64c556717b4879bf8d4c30067cf6e70d899a3dc0"},{"type":"PACKAGE","url":"https://github.com/rooseveltframework/teddy"},{"type":"WEB","url":"https://github.com/rooseveltframework/teddy/releases/tag/0.5.9"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-TEDDY-1579557"}],"affected":[{"package":{"name":"teddy","ecosystem":"npm","purl":"pkg:npm/teddy"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.5.9"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/10/GHSA-5f38-9jw2-6r6h/GHSA-5f38-9jw2-6r6h.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"}]}