Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/csaf-poc/csaf_distribution
  4. ›
  5. CVE-2022-43996

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

December 14, 2022 (updated April 23, 2025)

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.

References

  • github.com/advisories/GHSA-xxfx-w2rw-gh63
  • github.com/csaf-poc/csaf_distribution
  • github.com/csaf-poc/csaf_distribution/commit/17f22855ee8d4270dd17ff748c30ed7304846fdc
  • github.com/csaf-poc/csaf_distribution/releases/tag/v0.8.2
  • nvd.nist.gov/vuln/detail/CVE-2022-43996
  • wid.cert-bund.de/.well-known/csaf/white/2022/bsi-2022-0003.json

Code Behaviors & Features

Detect and mitigate CVE-2022-43996 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.8.2

Fixed versions

  • 0.8.2

Solution

Upgrade to version 0.8.2 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

go/github.com/csaf-poc/csaf_distribution/CVE-2022-43996.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:32 +0000.