Cross-site Scripting in teddy
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).
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | teddy | < 0.5.9 | 0.5.9 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-23447
- https://github.com/rooseveltframework/teddy/pull/518
- https://github.com/rooseveltframework/teddy/commit/64c556717b4879bf8d4c30067cf6e70d899a3dc0
- https://github.com/rooseveltframework/teddy
- https://github.com/rooseveltframework/teddy/releases/tag/0.5.9
- https://snyk.io/vuln/SNYK-JS-TEDDY-1579557
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N- Weakness (CWE)
CWE-79, CWE-843- Platform
- npm
- Package
teddy- Disclosed
- 12.10.2021
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-5f38-9jw2-6r6h - CC BY 4.0
Vulnerability history: teddy
All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.