CVE-2023-46252 Cross-Site Scripting (XSS) via postMessage Handler in Squidex

Medium 6.8 Published Updated

Attackers can execute arbitrary scripts in victim browsers via a missing origin check in the postMessage handler of the Squidex editor SDK.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2023-46252?

CVE-2023-46252 is a medium-severity cross-site scripting vulnerability in squidex, published on 7 Nov 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-79

Which versions are affected by CVE-2023-46252?

It affects 1 product.

Products include Squidex.io Squidex.

How do I fix CVE-2023-46252?

No fix has been published for CVE-2023-46252 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2023-46252 being exploited?

There is no known exploitation of CVE-2023-46252 in the wild and no public exploit code.

Sources

Also known as GHSA-7q4f-fprr-5jw8.

Is CVE-2023-46252 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free