CVE-2021-3783 Cross-site Scripting (XSS) - Reflected in yourls/yourls

Medium 6.6 Published Updated

Attackers can inject malicious scripts into the Yourls URL shortener, potentially stealing user sessions or executing code in victim browsers.

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

What is CVE-2021-3783?

CVE-2021-3783 is a medium-severity cross-site scripting vulnerability in yourls/yourls, published on 15 Sep 2021. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

yourls is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Weakness: CWE-79

Which versions are affected by CVE-2021-3783?

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

PackageAffectedFixed in
yourls/yourls PackagistAll versions to 1.8.2None
yourls/yourls PackagistAll versions to 1.8.2None

Products include Yourls Yourls.

How do I fix CVE-2021-3783?

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

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

Sources

Also known as GHSA-cpq8-x35g-m439.

Is CVE-2021-3783 in your software?

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

Check your SBOMs for free