CVE-2026-27210 Details
Description
Pannellum is a lightweight, free, and open source panorama viewer for the web. In versions 3.5.0 through 2.5.6, the 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. This issue has been fixed in version 2.5.7. To workaround, setting 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.
A cross-site scripting (XSS) vulnerability has been identified in Pannellum, a web-based panorama viewer, affecting versions 2.5.0 through 2.5.6. The issue arises from the hot spot attributes configuration property, which allowed the inclusion of any attribute, including HTML event handler attributes. This vulnerability impacts websites using the standalone viewer HTML file or untrusted JSON config files, bypassing the 'escapeHTML' protection. Certain events can trigger the vulnerability without user interaction, enabling the execution of arbitrary JavaScript that could manipulate page content to appear as if it originated from the hosting website.
Users can upgrade to Pannellum version 2.5.7, where this vulnerability has been fixed. As a workaround, the 'Content-Security-Policy' header can be set to 'script-src-attr 'none'' to block the execution of inline event handlers. Additionally, Pannellum should not be hosted on a domain that shares cookies with user authentication to reduce XSS risks.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 25, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/mpetroff/pannellum/commit/9391ef8da6a6a98c6a9f8c97f101adb900523681 | [email protected] | Patch |
| https://github.com/mpetroff/pannellum/security/advisories/GHSA-8423-w5wx-h2r6 | [email protected] | MitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| pannellum pannellum | >= 2.5.0, < 2.5.7 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 2, 2026 | Initial Analysis | [email protected] |
| Feb 21, 2026 | New CVE Received | [email protected] |