CVE-2019-3826: Withdrawn Advisory Cross-Site Scripting Vulnerability
MODERATECVE-2019-3826 is a MODERATE (CVSS 5.4) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Withdrawn Advisory libraries in the Go ecosystem. The issue involves prometheus xss vulnerability. Remediation is available by upgrading affected packages to version 2.7.1.
CVE-2019-3826 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-2019-3826
To remediate this vulnerability, upgrade all affected Withdrawn Advisory 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/prometheus/prometheus to 2.7.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/prometheus/prometheus
How to Check if You Are Affected
To determine whether your application is affected by CVE-2019-3826, inspect your project dependencies for Withdrawn Advisory:
inspect dependencies for github.com/prometheus/prometheus
Analyze the terminal output to locate any version of Withdrawn Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.7.1), 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 Withdrawn Advisory, 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-2019-3826 Affected Withdrawn Advisory Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/prometheus/prometheus
|
Go |
< 2.7.1
|
2.7.1
|
References
Frequently Asked Questions
What is CVE-2019-3826?
Which Withdrawn Advisory versions are affected?
What version fixes CVE-2019-3826?
Is github.com/prometheus/prometheus affected?
What is the CVSS score of CVE-2019-3826?
What CWE is associated with CVE-2019-3826?
How can I check Go dependencies for CVE-2019-3826?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-3m87-5598-2v4f",
"modified" : "2023-12-18T20:53:30Z",
"published" : "2023-12-13T21:26:54Z",
"withdrawn" : "2023-12-18T20:53:30Z",
"aliases" : [ "CVE-2019-3826" ],
"summary" : "Withdrawn Advisory: Prometheus XSS Vulnerability",
"details" : "## Withdrawn Advisory\nThis advisory has been withdrawn because the vulnerability does not apply to the Prometheus golang package. This link is maintained to preserve external references.\n\n## Original Description\nA stored, DOM based, cross-site scripting (XSS) flaw was found in Prometheus before version 2.7.1. An attacker could exploit this by convincing an authenticated user to visit a crafted URL on a Prometheus server, allowing for the execution and persistent storage of arbitrary scripts.",
"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/prometheus/prometheus"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.7.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-3826"
}, {
"type" : "WEB",
"url" : "https://github.com/aquasecurity/trivy/issues/2992"
}, {
"type" : "WEB",
"url" : "https://github.com/prometheus/prometheus/pull/5163"
}, {
"type" : "WEB",
"url" : "https://github.com/prometheus/prometheus/pull/5163/commits/ea254eea5e3c9a12d6f37a25921b7259ff1c4280"
}, {
"type" : "WEB",
"url" : "https://github.com/prometheus/prometheus/commit/62e591f9"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHBA-2019:0327"
}, {
"type" : "WEB",
"url" : "https://advisory.checkmarx.net/advisory/CX-2019-4297"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-3826"
}, {
"type" : "WEB",
"url" : "https://gitlab.com/gitlab-org/security-products/gemnasium-db/-/merge_requests/26608"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/r48d5019bd42e0770f7e5351e420a63a41ff1f16924942442c6aff6a8@%3Ccommits.zookeeper.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/r8e3f7da12bf5750b0a02e69a78a61073a2ac950eed7451ce70a65177@%3Ccommits.zookeeper.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/rdf2a0d94c3b5b523aeff7741ae71347415276062811b687f30ea6573@%3Ccommits.zookeeper.apache.org%3E"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-12-13T21:26:54Z",
"nvd_published_at" : null
}
}