Vulnerabilities in pkg:npm/pannellum
PACKAGECVE-2026-27210 is a MODERATE 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 has a xss vulnerability in hot spot attributes. Remediation is available by upgrading affected packages to version 2.5.7.
pkg:npm/pannellum
Vulnerability advisories affecting package pkg:npm/pannellum. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-8423-w5wx-h2r6 | CVE-2026-27210 | MODERATE | Pannellum has a XSS vulnerability in hot spot attributes |
| GHSA-m52x-29pq-w3vv | CVE-2019-16763 | MODERATE | Pannellum Cross-Site Scripting due to data not being sanitized for URIs or vbscript |
CVE-2026-27210 at a Glance
How to Fix CVE-2026-27210
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.
npm install pannellum@2.5.7
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-2026-27210, 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.7), 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
CVE-2026-27210 Affected Pannellum Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
pannellum
|
npm |
≥ 2.5.0
< 2.5.7
|
2.5.7
|
References
Frequently Asked Questions
What is CVE-2026-27210?
Which Pannellum versions are affected?
What version fixes CVE-2026-27210?
Is pannellum affected?
What CWE is associated with CVE-2026-27210?
How can I check npm dependencies for CVE-2026-27210?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8423-w5wx-h2r6",
"modified" : "2026-02-23T22:27:55Z",
"published" : "2026-02-19T20:44:48Z",
"aliases" : [ "CVE-2026-27210" ],
"summary" : "Pannellum has a XSS vulnerability in hot spot attributes",
"details" : "### Impact\nThe hot spot `attributes` configuration property allowed any attribute to be set, including HTML event handler attributes, allowing for potential XSS attacks. This affects websites hosting the standalone viewer HTML file and any other use of untrusted JSON config files (bypassing the protections of the `escapeHTML` parameter). As certain events fire without any additional user interaction, visiting a standalone viewer URL that points to a malicious config file—without additional user interaction—is sufficient to trigger the vulnerability and execute arbitrary JavaScript code, which can, for example, replace the contents of the page with arbitrary content and make it appear to be hosted by the website hosting the standalone viewer HTML file.\n\n### Patches\nThis has been fixed both in v2.5.7 and in the current development branch.\n\n### Workarounds\nSetting the `Content-Security-Policy` header to `script-src-attr 'none'` will block execution of inline event handlers, mitigating this vulnerability. Don't host `pannellum.htm` on a domain that shares cookies with user authentication to mitigate XSS risk.\n\n### Acknowledgments\n\nReported both by luminary (@lumin9ry), Visvge (@Sicclord1 / @Visvge), and sutol (@0x5a6163 / @SUT0L) and by another researcher who wishes not to be named at this time.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "pannellum"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.5.0"
}, {
"fixed" : "2.5.7"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/mpetroff/pannellum/security/advisories/GHSA-8423-w5wx-h2r6"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-27210"
}, {
"type" : "WEB",
"url" : "https://github.com/mpetroff/pannellum/commit/9391ef8da6a6a98c6a9f8c97f101adb900523681"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mpetroff/pannellum"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-02-19T20:44:48Z",
"nvd_published_at" : "2026-02-21T06:17:01Z"
}
}