{"answers":{"affected":"2 open source packages ship an affected version, including winter/wn-backend-module.","exploited":"There is no known exploitation of GHSA-hq84-x37p-j6q5 in the wild and no public exploit code.","fix":"Upgrade winter/wn-backend-module to 1.2.14 or later.","what":"GHSA-hq84-x37p-j6q5 is a cross-site scripting vulnerability in winter/wn-backend-module, published on 20 Aug 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for GHSA-hq84-x37p-j6q5 and fix it if it is affected.\n\nWhat it is: GHSA-hq84-x37p-j6q5 is a cross-site scripting vulnerability in winter/wn-backend-module, published on 20 Aug 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of GHSA-hq84-x37p-j6q5 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- winter/wn-backend-module (Packagist): affected from 1.0.420; fixed in 1.2.14\n- winter/wn-backend-module (Packagist): affected from 1.0.420; fixed in 1.2.14\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-hq84-x37p-j6q5/ (Markdown: https://insights.sbomify.com/GHSA-hq84-x37p-j6q5/index.md)","id":"GHSA-hq84-x37p-j6q5","markdown":"https://insights.sbomify.com/GHSA-hq84-x37p-j6q5/index.md","name":"GHSA-hq84-x37p-j6q5","record":{"aliases":[],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Winter CMS","requires_auth":"low_privilege","summary":"Reflected XSS in Winter CMS backend allows attackers to execute scripts in authenticated sessions, potentially leading to code execution via template editing.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Impact\n\nAffected versions of Winter CMS render the `search` query parameter without HTML encoding inside a `\u003cscript type=\"text/template\"\u003e` block in the backend Table widget partial (`modules/backend/widgets/table/partials/_table.php`):\n\n```php\nvalue=\"\u003c?= get('search') ?\u003e\"\n```\n\n`\u003cscript\u003e` is an HTML raw-text context, so the surrounding `value=\"…\"` attribute quoting is not a parser boundary. A literal `\u003c/script\u003e` in the query string terminates the template element early, and everything after it is parsed as ordinary markup in the backend document.\n\nAny backend page rendering a Table or DataTable widget is a sink. The value is read from the global request through the `get()` helper, which — unlike `post()` — is not restricted by HTTP method, so a plain top-level `GET` navigation is sufficient. The template is also emitted unconditionally by the partial, so widgets using the default `searching: false` configuration are equally affected.\n\nIn Winter core the reachable route is the **Editor Settings** form (`/backend/system/settings/update/winter/backend/editor`), which renders six `datatable` fields and is gated by `backend.manage_editor` — assigned by default to the built-in Developer role. Third-party plugins using the `datatable` form widget, or the Table widget directly, expose the same sink on their own pages.\n\nAn attacker who induces a signed-in backend user to follow a crafted link executes script in that user's authenticated backend origin. The injected script can read the CSRF token published in the backend layout's `\u003cmeta name=\"csrf-token\"\u003e` element and issue credentialed requests as the victim, bounded only by that user's permissions. Because the core sink requires `backend.manage_editor`, the practical victim is a Developer-role user or superuser — who can edit CMS templates, so script running in that session can chain to server-side code execution.\n\nThis is not a permission bypass: the victim must already be authorised for the page, and the attacker gains no permission the victim does not hold.\n\nTo actively exploit this issue, an attacker needs no account of their own, but does need an authenticated backend user with access to a page rendering a Table or DataTable widget to follow an attacker-supplied link.\n\n### Patches\n\nThe `search` value is now HTML-encoded on output, matching every other value rendered by the same partial and the equivalent handling in the backend Search widget (`modules/backend/widgets/search/partials/_search.php`):\n\n```php\nvalue=\"\u003c?= e(get('search')); ?\u003e\"\n```\n\nThis removes the raw-text terminator: the browser can no longer encounter an attacker-supplied literal `\u003c/script\u003e` while tokenising the document. The template is subsequently parsed once by jQuery when the toolbar is built, so an encoded payload resolves to an inert attribute string rather than markup.\n\nRegression coverage was added in `modules/backend/tests/widgets/TableSearchEscapingTest.php`, covering plain, mixed-case (`\u003c/ScRiPt\u003e`) and whitespace-bearing (`\u003c/script \u003e`) terminators, both `searching` states, and preservation of ordinary and Unicode search text.\n\nThis security issue has been fixed in [v1.2.14](https://github.com/wintercms/winter/commit/1b6397654124fb44a6abf6f3782b6a1d746cef14).\n\n### Workarounds\n\nIf you cannot upgrade, apply https://github.com/wintercms/winter/commit/1b6397654124fb44a6abf6f3782b6a1d746cef14 manually — in `modules/backend/widgets/table/partials/_table.php`, change:\n\n```php\nvalue=\"\u003c?= get('search') ?\u003e\"\n```\n\nto:\n\n```php\nvalue=\"\u003c?= e(get('search')); ?\u003e\"\n```\n\nA restrictive Content Security Policy served at the web server or reverse proxy can reduce practical exploitability, but it is not a substitute for the fix: Winter's backend ships inline scripts, so a policy permissive enough to run the backend may still permit an injected execution primitive.\n\n### References\n\nCredit to Awwader ([@NRAwwad](https://github.com/NRAwwad)) for reporting the issue.\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n- Email us at [hello@wintercms.com](mailto:hello@wintercms.com)","ecosystems":["Packagist"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Winter: Reflected XSS through the search query parameter in the backend Table widget","id":"GHSA-hq84-x37p-j6q5","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"Packagist","fixed":["1.2.14"],"introduced":["1.0.420"],"last_affected":[],"package":"winter/wn-backend-module","purl":null,"source":"GHSA-hq84-x37p-j6q5"},{"ecosystem":"Packagist","fixed":["1.2.14"],"introduced":["1.0.420"],"last_affected":[],"package":"winter/wn-backend-module","purl":"pkg:composer/winter/wn-backend-module","source":"GHSA-hq84-x37p-j6q5"}],"products":null,"published":"2026-08-20","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Reflected XSS in Winter CMS backend allows attackers to execute scripts in authenticated sessions, potentially leading to code execution via template editing.","url":"https://insights.sbomify.com/GHSA-hq84-x37p-j6q5/"}