CVE-2022-43996 csaf-poc/csaf_distribution Cross-site Scripting vulnerability

Medium 5.4 Published Updated

Attackers can execute arbitrary JavaScript in victim browsers by uploading crafted CSAF documents served as HTML.

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

What is CVE-2022-43996?

CVE-2022-43996 is a medium-severity cross-site scripting vulnerability in n/a, published on 13 Dec 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

The csaf_provider package before 0.8.2 allows XSS via a crafted CSAF document uploaded as text/html. The endpoint upload allows valid CSAF advisories (JSON format) to be uploaded with Content-Type text/html and filenames ending in .html. When subsequently accessed via web browser, these advisories are served and interpreted as HTML pages. Such uploaded advisories can contain JavaScript code that will execute within the browser context of users inspecting the advisory.

Weakness: CWE-79

Which versions are affected by CVE-2022-43996?

3 open source packages ship an affected version, including github.com/csaf-poc/csaf_distribution. It affects 1 product.

PackageAffectedFixed in
github.com/csaf-poc/csaf_distribution GoAll versions0.8.2
github.com/csaf-poc/csaf_distribution GoAll versions0.8.2
github.com/csaf-poc/csaf_distribution GoAll versions0.8.2

Products include Csaf Provider Project Csaf Provider.

How do I fix CVE-2022-43996?

Upgrade github.com/csaf-poc/csaf_distribution to 0.8.2 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-2022-43996 being exploited?

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

Sources

Also known as GHSA-xxfx-w2rw-gh63, GO-2022-1164.

Is CVE-2022-43996 in your software?

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

Check your SBOMs for free