{"id":"CVE-2026-27210","published":"2026-02-21T05:24:16Z","modified":"2026-02-25T21:16:34Z","title":"Pannellum has a XSS vulnerability in hot spot attributes","vendor":"mpetroff","product":"pannellum","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00363,"percentile":0.30895,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/mpetroff/pannellum/security/advisories/GHSA-8423-w5wx-h2r6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/mpetroff/pannellum/commit/9391ef8da6a6a98c6a9f8c97f101adb900523681","tags":["x_refsource_MISC"]}],"priority":{"score":9.9,"factors":[{"name":"EPSS percentile","points":6.18},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"mpetroff","affectedVersions":[{"vendor":"mpetroff","product":"pannellum","versions":[">= 2.5.0, < 2.5.7"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-02-25T21:16:25.784176Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"pannellum","vulnerableRanges":[">=2.5.0, <2.5.7"],"patched":["2.5.7"],"from":["GHSA-8423-w5wx-h2r6"],"provenance":"source"}],"summary":{"text":"The Pannellum web panorama viewer, in the hot spot attributes configuration property, lets any attribute be set, including HTML event handler attributes, which enables cross-site scripting. An attacker who can supply a malicious JSON config file to a standalone viewer page (for example, one hosted on a website) can execute arbitrary JavaScript when a user visits the page with that config, requiring no authentication and only that the user open the URL, though user interaction is needed to reach the page.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:05:53Z"},"euvd":{"id":"EUVD-2026-7730","exploited":false,"provenance":"source"}}