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

MODERATE
Advisory Identifier: GHSA-jgwg-35hf-xqrr
CVSS 6.3
CWE-352
Published
Advisory Summary

CVE-2019-3876 is a MODERATE (CVSS 6.3) cross-site scripting vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Withdrawn Advisory libraries in the Go ecosystem. The issue involves openshift oauth server xss vulnerability. Remediation is available by upgrading affected packages to version 3.11.

CVE-2019-3876 at a Glance

CVE Identifier CVE-2019-3876
GHSA Identifier GHSA-jgwg-35hf-xqrr
Severity MODERATE
CVSS v3.1 Base Score 6.3
CWE Classification CWE-352: Cross-Site Request Forgery (CSRF)
Affected Product Withdrawn Advisory
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2019-3876

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/openshift/oauth-apiserver fixed: 3.11
Upgrade github.com/openshift/oauth-apiserver to 3.11
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/openshift/oauth-apiserver

How to Check if You Are Affected

To determine whether your application is affected by CVE-2019-3876, inspect your project dependencies for Withdrawn Advisory:

inspect dependencies for github.com/openshift/oauth-apiserver

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 3.11), 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-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. 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 affect a package in one of the GitHub Advisory Database's [supported ecosystems](https://github.com/github/advisory-database/blob/main/README.md#supported-ecosystems). This link is maintained to preserve external references. ## Original Description A flaw was found in the `/oauth/token/request` custom endpoint of the OpenShift OAuth server allowing for XSS generation of CLI tokens due to missing X-Frame-Options and CSRF protections. If not otherwise prevented, a separate XSS vulnerability via JavaScript could further allow for the extraction of these tokens.

CVE-2019-3876 Affected Withdrawn Advisory Versions

1 component(s)
Fixed Versions:
3.11
Product / Package Ecosystem Affected Versions Fixed Version
github.com/openshift/oauth-apiserver
Go
≥ 3.0
< 3.11
3.11

References

Frequently Asked Questions

What is CVE-2019-3876?
CVE-2019-3876 is a security vulnerability in Withdrawn Advisory involving OpenShift OAuth Server XSS Vulnerability under CWE-352: Cross-Site Request Forgery (CSRF).
Which Withdrawn Advisory versions are affected?
Affected versions include releases prior to 3.11 across affected packages: github.com/openshift/oauth-apiserver.
What version fixes CVE-2019-3876?
Upgrading to 3.11 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/openshift/oauth-apiserver affected?
Yes, github.com/openshift/oauth-apiserver is affected in releases prior to 3.11. Upgrade your dependency to 3.11 or later.
What is the CVSS score of CVE-2019-3876?
CVE-2019-3876 has a CVSS v3.1 base score of 6.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2019-3876?
CVE-2019-3876 is classified under CWE-352: Cross-Site Request Forgery (CSRF) (The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.).
How can I check Go dependencies for CVE-2019-3876?
Run the dependency tree command: 'inspect dependencies for github.com/openshift/oauth-apiserver'. 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-jgwg-35hf-xqrr",
  "modified" : "2023-09-28T20:29:31Z",
  "published" : "2022-05-13T01:12:23Z",
  "withdrawn" : "2023-09-28T20:29:31Z",
  "aliases" : [ "CVE-2019-3876" ],
  "summary" : "Withdrawn Advisory: OpenShift OAuth Server XSS Vulnerability",
  "details" : "## Withdrawn Advisory\n\nThis advisory has been withdrawn because the vulnerability does not affect a package in one of the GitHub Advisory Database's [supported ecosystems](https://github.com/github/advisory-database/blob/main/README.md#supported-ecosystems). This link is maintained to preserve external references.\n\n## Original Description\n\nA flaw was found in the `/oauth/token/request` custom endpoint of the OpenShift OAuth server allowing for XSS generation of CLI tokens due to missing X-Frame-Options and CSRF protections. If not otherwise prevented, a separate XSS vulnerability via JavaScript could further allow for the extraction of these tokens.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/openshift/oauth-apiserver"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0"
      }, {
        "fixed" : "3.11"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-3876"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:1851"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2019-3876"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1691107"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-3876"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20210126211309/http://www.securityfocus.com/bid/107664"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-352" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-19T19:30:34Z",
    "nvd_published_at" : "2019-04-01T15:29:00Z"
  }
}