{"id":"CVE-2026-27210","aliases":["GHSA-8423-w5wx-h2r6"],"url":"https://o3.security/vulnerability/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&mdash;without additional user interaction&mdash;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.","published":"2026-02-21T05:24:16.137Z","modified":"2026-08-12T03:51:10.935831456Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"pannellum","fixedVersion":"2.5.7"}],"fix":{"url":"https://github.com/mpetroff/pannellum/commit/9391ef8da6a6a98c6a9f8c97f101adb900523681","label":"mpetroff/pannellum@9391ef8"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/27xxx/CVE-2026-27210.json"},{"type":"ADVISORY","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":"FIX","url":"https://github.com/mpetroff/pannellum/commit/9391ef8da6a6a98c6a9f8c97f101adb900523681"},{"type":"PACKAGE","url":"https://github.com/mpetroff/pannellum"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:10.935831456Z"}}