CVE-2022-43996
JSON

5.4medium

csaf-poc/csaf_distribution Cross-site Scripting vulnerability

Severity
5.4medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.51% (higher than 45% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-xxfx-w2rw-gh63GO-2022-1164

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
github.com/csaf-poc/csaf_distribution (Go)before 0.8.2GitHub Advisory Database, Go Vulnerability Database
csaf_provider_project csaf_providerbefore 0.8.2NVD

All scores

CISA-ADP5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
GitHub5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
NVD5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-79

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

Go Vulnerability Database

csaf-poc/csaf_distribution Cross-site Scripting vulnerability in github.com/csaf-poc/csaf_distribution

NVD (es)

El paquete csaf_provider anterior a 0.8.2 permite XSS a través de un documento CSAF diseñado y cargado como texto/html. La carga del endpoint permite cargar avisos CSAF válidos (formato JSON) con texto/html de tipo de contenido y nombres de archivos que terminan en .html. Cuando se accede posteriormente a través de un navegador web, estos avisos se entregan e interpretan como páginas HTML. Dichos avisos cargados pueden contener código JavaScript que se ejecutará dentro del contexto del navegador de los usuarios que inspeccionan el aviso.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-43996 changed 2025-04-22CVE Terms of Use
GitHub Advisory DatabaseGHSA-xxfx-w2rw-gh63 changed 2025-04-23CC-BY-4.0
Go Vulnerability DatabaseGO-2022-1164 changed 2026-03-03CC-BY-4.0
NVDCVE-2022-43996 changed 2026-06-17Public domain