What’s Vulnerable › Vulnerabilities
CVE-2023-46252: Cross-Site Scripting (XSS) via postMessage Handler in Squidex
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.5% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2023-11-07 · updated 2026-06-17
- Weakness: CWE-79
Description
Squidex is an open source headless CMS and content management hub. Affected versions are missing origin verification in a postMessage handler which introduces a Cross-Site Scripting (XSS) vulnerability. The editor-sdk.js file defines three different class-like functions, which employ a global message event listener: SquidexSidebar, SquidexWidget, and SquidexFormField. The registered event listener takes some action based on the type of the received message. For example, when the SquidexFormField receives a message with the type valueChanged, the value property is updated. The SquidexFormField class is for example used in the editor-editorjs.html file, which can be accessed via the public wwwroot folder. It uses the onValueChanged method to register a callback function, which passes the value provided from the message event to the editor.render. Passing an attacker-controlled value to this function introduces a Cross-Site Scripting (XSS) vulnerability.
Affected products
- squidex: 7.8.2
References
- https://github.com/Squidex/squidex/security/advisories/GHSA-7q4f-fprr-5jw8
- https://github.com/Squidex/squidex/security/advisories/GHSA-7q4f-fprr-5jw8
Get alerted when CVE-2023-46252 or the next vulnerability affects your stack