Vulnerabilities in pkg:golang/github.com/csaf-poc/csaf_distribution
PACKAGECVE-2022-43996 is a MODERATE (CVSS 5.4) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Github.com/csaf poc/csaf distribution libraries in the Go ecosystem. The issue involves csaf-poc/csaf_distribution cross-site scripting vulnerability. Remediation is available by upgrading affected packages to version 0.8.2.
pkg:golang/github.com/csaf-poc/csaf_distribution
Vulnerability advisories affecting package pkg:golang/github.com/csaf-poc/csaf_distribution. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-xxfx-w2rw-gh63 | CVE-2022-43996 | MODERATE | csaf-poc/csaf_distribution Cross-site Scripting vulnerability |
CVE-2022-43996 at a Glance
Security Impact
CVSS: 5.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2022-43996
To remediate this vulnerability, upgrade all affected Github.com/csaf poc/csaf distribution dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/csaf-poc/csaf_distribution to 0.8.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/csaf-poc/csaf_distribution
How to Check if You Are Affected
To determine whether your application is affected by CVE-2022-43996, inspect your project dependencies for Github.com/csaf poc/csaf distribution:
inspect dependencies for github.com/csaf-poc/csaf_distribution
Analyze the terminal output to locate any version of Github.com/csaf poc/csaf distribution in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.8.2), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Github.com/csaf poc/csaf distribution, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2022-43996 Affected Github.com/csaf poc/csaf distribution Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/csaf-poc/csaf_distribution
|
Go |
< 0.8.2
|
0.8.2
|
References
Frequently Asked Questions
What is CVE-2022-43996?
Which Github.com/csaf poc/csaf distribution versions are affected?
What version fixes CVE-2022-43996?
Is github.com/csaf-poc/csaf_distribution affected?
What is the CVSS score of CVE-2022-43996?
What CWE is associated with CVE-2022-43996?
How can I check Go dependencies for CVE-2022-43996?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xxfx-w2rw-gh63",
"modified" : "2025-04-23T14:55:10Z",
"published" : "2022-12-14T00:30:23Z",
"aliases" : [ "CVE-2022-43996" ],
"summary" : "csaf-poc/csaf_distribution Cross-site Scripting vulnerability",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/csaf-poc/csaf_distribution"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.8.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-43996"
}, {
"type" : "WEB",
"url" : "https://github.com/csaf-poc/csaf_distribution/commit/17f22855ee8d4270dd17ff748c30ed7304846fdc"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/csaf-poc/csaf_distribution"
}, {
"type" : "WEB",
"url" : "https://github.com/csaf-poc/csaf_distribution/releases/tag/v0.8.2"
}, {
"type" : "WEB",
"url" : "https://wid.cert-bund.de/.well-known/csaf/white/2022/bsi-2022-0003.json"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-12-14T14:06:08Z",
"nvd_published_at" : "2022-12-13T22:15:00Z"
}
}