CVE-2019-16763: Pannellum Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-m52x-29pq-w3vv
CVSS 4.8
CWE-79
Published
Advisory Summary

CVE-2019-16763 is a MODERATE (CVSS 4.8) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Pannellum libraries in the npm ecosystem. The issue involves pannellum cross-site scripting due to data not being sanitized for uris or vbscript. Remediation is available by upgrading affected packages to version 2.5.5.

CVE-2019-16763 at a Glance

CVE Identifier CVE-2019-16763
GHSA Identifier GHSA-m52x-29pq-w3vv
Severity MODERATE
CVSS v3.1 Base Score 4.8
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Pannellum
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 4.8

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

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

How to Fix CVE-2019-16763

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

pannellum fixed: 2.5.5
npm install pannellum@2.5.5
Verify Direct and Transitive Dependencies

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

npm ls pannellum

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2019-16763, inspect your project dependencies using npm:

npm ls pannellum

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

Note: The npm ls pannellum command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

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

Versions of `pannellum` prior to 2.5.6 are vulnerable to Cross-Site Scripting (XSS). The package fails to sanitize URLs for data URIs, which may allow attackers to execute arbitrary code in a victim's browser. ## Recommendation Upgrade to version 2.5.6 or later.

CVE-2019-16763 Affected Pannellum Versions

1 component(s)
Fixed Versions:
2.5.5
Product / Package Ecosystem Affected Versions Fixed Version
pannellum
npm
≥ 2.5.0
< 2.5.5
2.5.5

References

Frequently Asked Questions

What is CVE-2019-16763?
CVE-2019-16763 is a security vulnerability in Pannellum involving Pannellum Cross-Site Scripting due to data not being sanitized for URIs or vbscript under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Pannellum versions are affected?
Affected versions include releases prior to 2.5.5 across affected packages: pannellum.
What version fixes CVE-2019-16763?
Upgrading to 2.5.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pannellum affected?
Yes, pannellum is affected in releases prior to 2.5.5. Upgrade your dependency to 2.5.5 or later.
What is the CVSS score of CVE-2019-16763?
CVE-2019-16763 has a CVSS v3.1 base score of 4.8 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:L/A:N.
What CWE is associated with CVE-2019-16763?
CVE-2019-16763 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 npm dependencies for CVE-2019-16763?
Run the dependency tree command: 'npm ls pannellum'. 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-m52x-29pq-w3vv",
  "modified" : "2022-08-03T13:00:22Z",
  "published" : "2019-11-22T18:18:03Z",
  "aliases" : [ "CVE-2019-16763" ],
  "summary" : "Pannellum Cross-Site Scripting due to data not being sanitized for URIs or vbscript",
  "details" : "Versions of `pannellum` prior to 2.5.6 are vulnerable to Cross-Site Scripting (XSS). The package fails to sanitize URLs for data URIs, which may allow attackers to execute arbitrary code in a victim's browser. \n\n\n## Recommendation\n\nUpgrade to version 2.5.6 or later.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "pannellum"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.5.0"
      }, {
        "fixed" : "2.5.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/mpetroff/pannellum/security/advisories/GHSA-m52x-29pq-w3vv"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-16763"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mpetroff/pannellum/commit/cc2f3d99953de59db908e0c6efd1c2c17f7c6914"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-m52x-29pq-w3vv"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mpetroff/pannellum"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/1418"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:44:55Z",
    "nvd_published_at" : null
  }
}