CVE-2021-23824 Content Injection

Medium 6.5 Published Updated

Attackers can inject malicious scripts via unquoted template attributes, leading to Cross-site Scripting and potential code execution.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-23824?

CVE-2021-23824 is a medium-severity cross-site scripting vulnerability in Crow, published on 13 Jan 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

This affects the package Crow before 0.3+4. When using attributes without quotes in the template, an attacker can manipulate the input to introduce additional attributes, potentially executing code. This may lead to a Cross-site Scripting (XSS) vulnerability, assuming an attacker can influence the value entered into the template. If the template is used to render user-generated content, this vulnerability may escalate to a persistent XSS vulnerability.

Weakness: CWE-79

Which versions are affected by CVE-2021-23824?

It affects 1 product.

Products include Crowcpp Crow.

How do I fix CVE-2021-23824?

No fix has been published for CVE-2021-23824 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-23824 being exploited?

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

Sources

Also known as GHSA-phvc-ghwf-mr3q, SNYK-UNMANAGED-CROW-2336164.

Is CVE-2021-23824 in your software?

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

Check your SBOMs for free