CVE-2026-62281: Emby Server XSS

CVE-2026-62281

NVD

Vulnerability Summary

Hello Emby Security Team, I would like to report a stored cross-site scripting vulnerability in Emby Web. Summary: Emby Web renders MediaSource.Path in the item detail Media Info panel using innerHTML without HTML encoding. A crafted media filename containing HTML/event-handler payloads can be persisted into the media library and executed when an administrator or user opens the item detail page. Affected component: Emby Web item detail page Tested version: Tested vulnerable on 4.9.3.0 and 4.9.5.0. The full affected version range has not been determined. Docker image: emby/embyserver_arm64v8:latest Environment: local Docker lab Vulnerable frontend sink: dashboard-ui/item/item.js Relevant logic: mediaSource.Path && renderAdminFields && (html += "<div>" + mediaSource.Path + "</div>") ... elem.innerHTML = html Impact: An attacker who can introduce a crafted media file into a library can execute JavaScript in the Emby Web origin when a user opens the corresponding item detail page. If the victim is an administrator, the script runs with the administrator's web session context and can issue same-origin Emby API requests. Proof of concept: 1. Create or import a valid media file with a crafted filename: api3_<img src=x onerror="fetch(String.fromCharCode(47)+'System'+String.fromCharCode(47)+'Info'+String.fromCharCode(47)+'Public').then(r=>document.body.setAttribute('data-xss-status',r.status))">.mp4 2. Add the directory containing this file to an Emby movie library. 3. Trigger a library scan. 4. Open the item detail page in Emby Web: /web/index.html#!/item?id={ItemId}&serverId={ServerId} 5. Observe that the Media Info section renders the file path as HTML. 6. The injected image element is created and the onerror handler executes. <img width="2218" height="1193" alt="12344" src="https://github.com/user-attachments/assets/65d0bbd6-d1d0-4437-a228-eb36d18d9367" /> Verification: After opening the item detail page, the following was observed: document.body.getAttribute("data-xss-status") == "200" The browser also recorded a same-origin request to: /System/Info/Public This confirms that JavaScript executed in the Emby Web origin and was able to perform same-origin API requests. Example API data: GET /Users/{UserId}/Items/{ItemId} Returned: { "Name": "ApiXSSDomProof", "Path": "/data/deep-test/api3_<img src=x onerror=\"...\">.mp4", "MediaSources": [ { "Path": "/data/deep-test/api3_<img src=x onerror=\"...\">.mp4" } ] } Expected behavior: MediaSource.Path should be rendered as plain text. Actual behavior: MediaSource.Path is concatenated into an HTML string and assigned to innerHTML, allowing HTML/event-handler execution. Recommended fix: Encode MediaSource.Path before inserting it into HTML, for example: html += "<div>" + htmlEncode(mediaSource.Path) + "</div>" Preferably, avoid string-based HTML construction and render paths with textContent: const div = document.createElement("div"); div.textContent = mediaSource.Path; Additional hardening: - Review all uses of innerHTML involving media metadata, paths, filenames, overview, taglines, subtitles, and provider data. - Add regression tests with filenames containing <img src=x onerror=...>. - Consider a Content Security Policy that blocks inline event handlers. Severity: I assess this as High when an administrator opens the affected item detail page, because the payload executes in the Emby Web origin and can perform same-origin API requests with the current session context. Otherwise, it is Medium depending on the victim user's permissions. Many Emby deployments automatically import media from download managers, shared folders, NAS shares, IPTV/media automation pipelines, or user-uploaded libraries. In those setups, a low-privileged user or an external media supply chain can introduce a crafted filename. The payload is later executed when an administrator opens the item detail page to inspect the media. I have only tested this in a local authorized lab environment and have not tested third-party Emby instances. Please let me know if you need additional evidence, screenshots, logs, or a minimized reproduction archive. Best regards, Timedout
Severity Level
HIGH(8.4)
Published Date
Oct 23, 2026
Last Modified
Oct 23, 2026
Exploitation Status
Public exploit available
CVE Record Status
Reserved
This CVE ID is referenced in a public advisory, but the CVE Program has not published its official CVE Record yet. Full CVSS/CPE data from NVD will appear here once it does.
Root Weakness (CWE)
The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters such as "<", ">", and "&" that could be interpreted as web-scripting elements when they are sent to a downstream component that processes web pages.
CVSS v3.1 Base Metrics — Score 8.4
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredHigh
User InteractionRequired
ScopeChanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

Affected & Patched Versions

Affected Versions
  • Emby Server 4.9.3.0 and 4.9.5.0 tested vulnerable. Other versions not tested.
Patched Versions
  • Emby Server 4.10.x.x

What to do

Prioritize this fix. Exploit code is public, so attacks can follow quickly.

  1. Check whether you run Emby Server and which version.
  2. Update to a patched version listed above, then confirm the new version.
  3. Review logs and exposed services for signs of earlier compromise.

Timeline

  • Oct 23, 2026Published
  • Oct 23, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new Emby Server CVEsYou are reading CVE-2026-62281. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Dec 4, 2026 14:00 UTC