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

Medium 5.4 Published Updated

An attacker can execute arbitrary scripts in the victim's browser due to improper input sanitization in the curly-bracket-parser template library.

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
None listed

What is CVE-2021-23416?

CVE-2021-23416 is a medium-severity cross-site scripting vulnerability in curly-bracket-parser, published on 28 Jul 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 all versions of package curly-bracket-parser. When used as a template library, it does not properly sanitize the user input.

Weakness: CWE-79

Which versions are affected by CVE-2021-23416?

2 open source packages ship an affected version, including curly-bracket-parser. It affects 1 product.

PackageAffectedFixed in
curly-bracket-parser npmAll versions to 1.0.2None
curly-bracket-parser npmAll versions to 1.0.2None

Products include Curly-Bracket-Parser Project Curly-Bracket-Parser.

How do I fix CVE-2021-23416?

No fix has been published for CVE-2021-23416 yet. Limit exposure of the affected software until one is available.

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-23416 being exploited?

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

Sources

Also known as GHSA-rqf8-8c89-mw29.

Is CVE-2021-23416 in your software?

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

Check your SBOMs for free