CVE-2021-28796 Cross-Site Scripting in Qiita-Markdown

Medium 6.1 Published Updated

Cross-site scripting vulnerability in the Qiita::Markdown library allows attackers to inject malicious scripts via transformers.

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-28796?

CVE-2021-28796 is a medium-severity cross-site scripting vulnerability in n/a, published on 18 Mar 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

Increments Qiita::Markdown before 0.33.0 allows XSS in transformers.

Weakness: CWE-79

Which versions are affected by CVE-2021-28796?

2 open source packages ship an affected version, including qiita-markdown. It affects 1 product.

PackageAffectedFixed in
qiita-markdown RubyGemsAll versions0.33.0
qiita-markdown RubyGemsAll versions0.33.0

Products include Increments Qiita\.

How do I fix CVE-2021-28796?

Upgrade qiita-markdown to 0.33.0 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-28796 being exploited?

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

Sources

Also known as GHSA-f2c9-5jqw-3xh3.

Is CVE-2021-28796 in your software?

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

Check your SBOMs for free