CVE-2024-56358 Cross-site Scripting vulnerability through svg attachment previews in grist-core

High 8.1 Published Updated

Attackers can compromise user accounts via stored XSS in SVG attachment previews within the Grist spreadsheet server.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2024-56358?

CVE-2024-56358 is a high-severity cross-site scripting vulnerability in gristlabs grist-core, published on 20 Dec 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

grist-core is a spreadsheet hosting server. A user visiting a malicious document and previewing an attachment could have their account compromised, because JavaScript in an SVG file would be evaluated in the context of their current page. This issue has been patched in version 1.3.2. Users are advised to upgrade. Users unable to upgrade should avoid previewing attachments in documents prepared by people they do not trust.

Weakness: CWE-79

Which versions are affected by CVE-2024-56358?

It affects 1 product.

Products include Getgrist Grist-Core.

How do I fix CVE-2024-56358?

No fix has been published for CVE-2024-56358 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-2024-56358 being exploited?

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

Sources

Also known as GHSA-jvfm-gf4f-33q3.

Is CVE-2024-56358 in your software?

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

Check your SBOMs for free