CVE-2016-4428: Horizon Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-grm6-x6mr-q3cv
CVSS 5.4
CWE-79
Published
Advisory Summary

CVE-2016-4428 is a MODERATE (CVSS 5.4) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Horizon libraries in the PyPI ecosystem. The issue involves openstack dashboard (horizon) cross-site scripting (xss) vulnerability. Remediation is available by upgrading affected packages to version 8.0.2, 9.1.0.

CVE-2016-4428 at a Glance

CVE Identifier CVE-2016-4428
GHSA Identifier GHSA-grm6-x6mr-q3cv
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 Horizon
Package Ecosystem PyPI
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-2016-4428

To remediate this vulnerability, upgrade all affected Horizon dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

horizon fixed: 8.0.2
pip install horizon>=8.0.2
horizon fixed: 9.1.0
pip install horizon>=9.1.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show horizon

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2016-4428, inspect your installed packages using pip:

pip show horizon

Analyze the terminal output to locate any version of Horizon in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.0.2), your application is affected.

Note: The pip show horizon command checks currently installed packages in your active Python environment.

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 Horizon, 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

Cross-site scripting (XSS) vulnerability in OpenStack Dashboard (Horizon) 8.0.1 and earlier and 9.0.0 through 9.0.1 allows remote authenticated users to inject arbitrary web script or HTML by injecting an AngularJS template in a dashboard form.

CVE-2016-4428 Affected Horizon Versions

2 component(s)
Fixed Versions:
8.0.29.1.0
Product / Package Ecosystem Affected Versions Fixed Version
horizon
PyPI
< 8.0.2
8.0.2
horizon
PyPI
≥ 9.0.0
< 9.1.0
9.1.0

References

NVD — CVE-2016-4428 NVD
https://nvd.nist.gov/vuln/detail/CVE-2016-4428
Security Fix Commit FIX COMMIT
https://github.com/openstack/horizon/commit/62b4e6f30a7ae7961805abdffdb3c7ae5c2b676a
Security Fix Commit FIX COMMIT
https://github.com/openstack/horizon/commit/d585e5eb9acf92d10d39b6c2038917a7e8ac71bb
Security Fix Commit FIX COMMIT
https://github.com/openstack/horizon/commit/fc8d70560401f3985e5672a4c580f10d51e985a4
access.redhat.com/errata/rhsa-2016:12... WEB
https://access.redhat.com/errata/RHSA-2016:1268
access.redhat.com/errata/rhsa-2016:12... WEB
https://access.redhat.com/errata/RHSA-2016:1269
access.redhat.com/errata/rhsa-2016:12... WEB
https://access.redhat.com/errata/RHSA-2016:1270
access.redhat.com/errata/rhsa-2016:12... WEB
https://access.redhat.com/errata/RHSA-2016:1271
access.redhat.com/errata/rhsa-2016:12... WEB
https://access.redhat.com/errata/RHSA-2016:1272
Horizon Security Information SECURITY
https://access.redhat.com/security/cve/CVE-2016-4428
bugs.launchpad.net/horizon/+bug/156767... WEB
https://bugs.launchpad.net/horizon/+bug/1567673
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=1343982
review.openstack.org/329996 WEB
https://review.openstack.org/329996
review.openstack.org/329997 WEB
https://review.openstack.org/329997
review.openstack.org/329998 WEB
https://review.openstack.org/329998
Horizon Security Information SECURITY
https://security.openstack.org/ossa/OSSA-2016-010.html
Horizon Security Information SECURITY
http://www.debian.org/security/2016/dsa-3617
Horizon Security Information SECURITY
http://www.openwall.com/lists/oss-security/2016/06/17/4

Frequently Asked Questions

What is CVE-2016-4428?
CVE-2016-4428 is a security vulnerability in Horizon involving OpenStack Dashboard (Horizon) Cross-site scripting (XSS) vulnerability under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Horizon versions are affected?
Affected versions include releases prior to 8.0.2, 9.1.0 across affected packages: horizon.
What version fixes CVE-2016-4428?
Upgrading to 8.0.2, 9.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is horizon affected?
Yes, horizon is affected in releases prior to 8.0.2, 9.1.0. Upgrade your dependency to 8.0.2, 9.1.0 or later.
What is the CVSS score of CVE-2016-4428?
CVE-2016-4428 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-2016-4428?
CVE-2016-4428 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 PyPI dependencies for CVE-2016-4428?
Run the dependency tree command: 'pip show horizon'. 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-grm6-x6mr-q3cv",
  "modified" : "2024-05-14T17:25:12Z",
  "published" : "2022-05-13T01:07:34Z",
  "aliases" : [ "CVE-2016-4428" ],
  "summary" : "OpenStack Dashboard (Horizon) Cross-site scripting (XSS) vulnerability",
  "details" : "Cross-site scripting (XSS) vulnerability in OpenStack Dashboard (Horizon) 8.0.1 and earlier and 9.0.0 through 9.0.1 allows remote authenticated users to inject arbitrary web script or HTML by injecting an AngularJS template in a dashboard form.",
  "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" : "PyPI",
      "name" : "horizon"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "8.0.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 8.0.1"
    }
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "horizon"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.0.0"
      }, {
        "fixed" : "9.1.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 9.0.1"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-4428"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/horizon/commit/62b4e6f30a7ae7961805abdffdb3c7ae5c2b676a"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/horizon/commit/d585e5eb9acf92d10d39b6c2038917a7e8ac71bb"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/horizon/commit/fc8d70560401f3985e5672a4c580f10d51e985a4"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2016:1268"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2016:1269"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2016:1270"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2016:1271"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2016:1272"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2016-4428"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/horizon/+bug/1567673"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1343982"
  }, {
    "type" : "WEB",
    "url" : "https://review.openstack.org/329996"
  }, {
    "type" : "WEB",
    "url" : "https://review.openstack.org/329997"
  }, {
    "type" : "WEB",
    "url" : "https://review.openstack.org/329998"
  }, {
    "type" : "WEB",
    "url" : "https://security.openstack.org/ossa/OSSA-2016-010.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2016/dsa-3617"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2016/06/17/4"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-14T17:25:11Z",
    "nvd_published_at" : "2016-07-12T19:59:00Z"
  }
}