# CVE-2021-23447: Cross-site Scripting (XSS)

- Severity: Medium 5.4 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.13%, higher than 67% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-10-07T16:40:12.628Z
- Modified: 2026-07-08T06:49:51.584Z
- Also known as: GHSA-5f38-9jw2-6r6h, SNYK-JS-TEDDY-1579557
- Weaknesses: CWE-79, CWE-843
- Assigned by: snyk

## 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).

(As written by CVE List.)

## Affected

- teddy: from unspecified before 0.5.9
- teddy (npm): before 0.5.9
- teddy_project teddy: before 0.5.9

## Every score

- snyk: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://snyk.io/vuln/SNYK-JS-TEDDY-1579557> (exploit, third-party-advisory, web)
- <https://github.com/rooseveltframework/teddy/pull/518> (patch, third-party-advisory, web)
- <https://github.com/rooseveltframework/teddy/releases/tag/0.5.9> (release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-23447> (advisory)
- <https://github.com/rooseveltframework/teddy/commit/64c556717b4879bf8d4c30067cf6e70d899a3dc0> (web)
- <https://github.com/rooseveltframework/teddy> (package)

## Sources

- CVE List: [CVE-2021-23447](https://www.cve.org/CVERecord?id=CVE-2021-23447), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-5f38-9jw2-6r6h](https://github.com/advisories/GHSA-5f38-9jw2-6r6h), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-23447](https://nvd.nist.gov/vuln/detail/CVE-2021-23447), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-23447 · Whole record: https://cve.day/CVE-2021-23447.json · Rebuilt by cve.day 2026-11-25T22:58:04.371Z
