GitHub Advisoryadvisory · Go
GHSA-xxfx-w2rw-gh63 csaf-poc/csaf_distribution Cross-site Scripting vulnerability
MEDIUM
Official page ↗
- Aliases
- CVE-2022-43996
- Ecosystem
- Go
- Packages
- github.com/csaf-poc/csaf_distribution
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- Weaknesses
- CWE-79
- Reviewed
- 2022-12-14
Affected packages
• Go github.com/csaf-poc/csaf_distribution: < 0.8.2 → fixed in 0.8.2
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.
Related
Alias · CVE (1)
- CVE-2022-43996 The csaf_provider package before 0.8.2 allows XSS via a crafted CSAF document uploaded as text/html. vulnerability
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-43996 advisory
- https://github.com/csaf-poc/csaf_distribution/commit/17f22855ee8d4270dd17ff748c30ed7304846fdc web
- https://github.com/csaf-poc/csaf_distribution package
- https://github.com/csaf-poc/csaf_distribution/releases/tag/v0.8.2 web
- https://wid.cert-bund.de/.well-known/csaf/white/2022/bsi-2022-0003.json web