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

Medium 5.4 Published Updated

An attacker can execute arbitrary scripts by exploiting a type confusion vulnerability that bypasses input sanitization in the teddy template engine.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-23447?

CVE-2021-23447 is a medium-severity cross-site scripting vulnerability in teddy, published on 7 Oct 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

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

Weakness: CWE-843

Which versions are affected by CVE-2021-23447?

2 open source packages ship an affected version, including teddy. It affects 1 product.

PackageAffectedFixed in
teddy npmAll versions0.5.9
teddy npmAll versions0.5.9

Products include Teddy Project Teddy.

How do I fix CVE-2021-23447?

Upgrade teddy to 0.5.9 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2021-23447 being exploited?

There is no known exploitation of CVE-2021-23447 in the wild and no public exploit code.

Sources

Also known as GHSA-5f38-9jw2-6r6h, SNYK-JS-TEDDY-1579557.

Is CVE-2021-23447 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free