CVE-2019-3826: Withdrawn Advisory Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-3m87-5598-2v4f
CVSS 5.4
CWE-79
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2019-3826
GHSA Identifier GHSA-3m87-5598-2v4f
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Withdrawn Advisory
Package Ecosystem Go
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (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.

github.com/prometheus/prometheus fixed: 2.7.1
Upgrade github.com/prometheus/prometheus to 2.7.1
Verify Direct and Transitive Dependencies

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

## Withdrawn Advisory This advisory has been withdrawn because the vulnerability does not apply to the Prometheus golang package. This link is maintained to preserve external references. ## Original Description A 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.

CVE-2019-3826 Affected Withdrawn Advisory Versions

1 component(s)
Fixed Versions:
2.7.1
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?
CVE-2019-3826 is a security vulnerability in Withdrawn Advisory involving Prometheus XSS Vulnerability under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Withdrawn Advisory versions are affected?
Affected versions include releases prior to 2.7.1 across affected packages: github.com/prometheus/prometheus.
What version fixes CVE-2019-3826?
Upgrading to 2.7.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/prometheus/prometheus affected?
Yes, github.com/prometheus/prometheus is affected in releases prior to 2.7.1. Upgrade your dependency to 2.7.1 or later.
What is the CVSS score of CVE-2019-3826?
CVE-2019-3826 has a CVSS v3.1 base score of 5.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2019-3826?
CVE-2019-3826 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check Go dependencies for CVE-2019-3826?
Run the dependency tree command: 'inspect dependencies for github.com/prometheus/prometheus'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}