Aug 21, 2026·5 min read·12 visits
Unsanitized user query parameters reflected inside an HTML script template block allow attackers to terminate the container early and execute arbitrary JavaScript in the victim's browser session.
A reflected Cross-Site Scripting (XSS) vulnerability exists in the backend Table widget of Winter CMS. The vulnerability is located within the search input template partial, where the application retrieves raw user inputs from the query parameters and renders them directly inside a raw-text script container without sanitization. An attacker can exploit this behavior by passing a crafted tag containing raw-text terminators, leading to code execution in the context of the victim's session.
The vulnerability affects the backend Table widget component in Winter CMS. This component is responsible for rendering interactive data grids, complete with search, filtering, and sorting utilities, which administrative users access inside the control panel.
The attack surface exists in the search input element located at modules/backend/widgets/table/partials/_table.php. Because this input is part of a template that is processed dynamically on the client side, the developers enclosed the markup in a script element of type text/template.
By leveraging the unique parsing rules that browsers apply to raw-text HTML elements, an unauthenticated attacker can craft a malicious hyperlink that targets this endpoint. If an authenticated administrator visits the link, arbitrary script commands run in their browser context, compromising the administrative session.
The root cause of this vulnerability lies in the combination of raw parameter reflection and browser HTML tokenization rules. The application retrieves the value of the search GET query parameter directly via the get('search') helper and embeds it into the value attribute of an HTML input tag.
To prevent the browser from rendering the toolbar controls on page load before the JavaScript framework initializes, the entire block is enclosed inside <script type="text/template">. According to the HTML5 specifications, <script> tags are treated as Raw Text Elements.
When the browser's parser encounters a Raw Text Element, it switches to the Script Data State. In this state, the parser does not recognize standard HTML attributes, single quotes, or double quotes as value boundaries. Instead, it scans the character stream exclusively for the literal ending sequence </script>. When an attacker passes a payload containing </script> inside the query string, the parser matches this sequence, closes the initial template block early, and treats the remaining payload as executable code.
The vulnerable code path is situated in the table partial file. Reviewing the difference between the vulnerable and patched versions highlights how the vulnerability was introduced and resolved.
Below is the code before the patch:
<!-- Vulnerable Code -->
<input
placeholder="<?= e(trans('backend::lang.list.search_prompt')) ?>"
name="search"
id="search"
value="<?= get('search') ?>"
type="text"
autocomplete="off"
class="table-search-input form-control icon search" />In the block above, get('search') retrieves the raw parameter and emits it directly. Below is the code after the patch:
<!-- Patched Code -->
<input
placeholder="<?= e(trans('backend::lang.list.search_prompt')) ?>"
name="search"
id="search"
value="<?= e(get('search')); ?>"
type="text"
autocomplete="off"
class="table-search-input form-control icon search" />The patch routes the output through the e() helper function, which runs htmlspecialchars() under the hood. This converts dangerous characters such as < and > into their equivalent HTML entities (< and >). When the browser's parser scans the script block, it sees </script> instead of the literal closing sequence, preventing the early termination of the raw-text element.
Exploitation requires targeting an administrative user who has access to the backend table interface. The attacker must construct a URL that points to a backend controller utilizing the table widget and includes the malicious payload in the query string.
A verified exploitation payload uses the raw-text terminator sequence combined with a secondary script block:
</script><script>alert(document.cookie)</script>
When encoded and appended to the target URL, the full request looks as follows:
https://example.com/backend/acme/plugin/items?search=%3C%2Fscript%3E%3Cscript%3Ealert%28document.cookie%29%3C%2Fscript%3E
Once the administrator loads this link, the browser tokenizes the response, terminates the template block at the first occurrence of </script>, and executes the secondary script block immediately, allowing the attacker to read the session cookie or perform actions on behalf of the administrator.
The impact of this vulnerability is classified as Medium, reflecting the classic risks associated with session hijacking and client-side privilege escalation. Because the payload executes within the administrative console of Winter CMS, the script runs with the authorization level of the logged-in administrator.
An attacker exploiting this vulnerability can perform unauthorized state modifications, steal session identifiers, or inject persistent backdoors into other sections of the content management system.
The vector breakdown under CVSS v3.1 is CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N. While exploitation requires user interaction to click the crafted link, the lack of prior authorization requirements and the potential for complete control over the CMS backend emphasize the need for immediate remediation.
To fully resolve the vulnerability, administrators must update Winter CMS to version v1.2.14 or higher. This update applies the escaping helper systematically across the affected templates.
If an immediate upgrade of the framework is not feasible, the vulnerability can be mitigated manually by applying the patch to the template partial at modules/backend/widgets/table/partials/_table.php on line 44. Ensure that the raw call to get('search') is wrapped inside the escaping helper e() as shown in the code analysis.
In addition, deploying a Web Application Firewall (WAF) with rules that detect and block raw closing HTML tags inside URL parameters can act as a temporary workaround until the patch is successfully applied.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N| Product | Affected Versions | Fixed Version |
|---|---|---|
winter wintercms | < 1.2.14 | 1.2.14 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-79 |
| Attack Vector | Network |
| CVSS Score | 6.1 (Medium) |
| Exploit Status | Proof of Concept |
| KEV Status | Not Listed |
The product does not sanitize or incorrectly sanitizes user-controlled input before it is placed in output that is used as a web page that is served to other users.
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.
CVE-2026-126304 is a symlink path traversal vulnerability (CWE-59) in the Natural Language Toolkit (NLTK) versions 3.10.0 prior to 3.10.4. The YCOECorpusReader class constructs internal sub-readers for the 'psd' and 'pos' subdirectories using FileSystemPathPointer.join(), which relies exclusively on lexical string-prefix validation rather than canonical path resolution. An attacker who supplies a crafted YCOE corpus containing symbolic links in place of the 'psd' or 'pos' subdirectories can bypass directory confinement and read arbitrary files from sibling corpora or sensitive directories within the NLTK data sandbox.