{"id":"CVE-2023-46252","summary":"Cross-Site Scripting (XSS) via postMessage Handler in Squidex","details":"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.","aliases":["GHSA-7q4f-fprr-5jw8"],"modified":"2026-08-12T03:51:13.250377273Z","published":"2023-11-07T19:00:58.743Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/46xxx/CVE-2023-46252.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-79"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/46xxx/CVE-2023-46252.json"},{"type":"ADVISORY","url":"https://github.com/Squidex/squidex/security/advisories/GHSA-7q4f-fprr-5jw8"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-46252"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/squidex/squidex","events":[{"introduced":"b73b90cd8ae91f7133cdd4c501f9b829ff59a6aa"},{"fixed":"7e8bc83243e3f2625372d05e0ba3687118a909dd"}],"database_specific":{"cpe":"cpe:2.3:a:squidex.io:squidex:7.8.2:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"7.9.0"},{"introduced":"7.8.2"},{"last_affected":"7.8.2"}],"source":["AFFECTED_FIELD","CPE_STRING"]}}],"versions":["7.8.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-46252.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:A/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L"}]}