CVE-2022-25875 Cross-site Scripting (XSS)

Medium 5.4 Published Updated
Exploited in the wild
Not known
Fix
Available

What is CVE-2022-25875?

CVE-2022-25875 is a medium-severity vulnerability in svelte, published on 12 Jul 2022.

Official description

The package svelte before 3.49.0 are vulnerable to Cross-site Scripting (XSS) due to improper input sanitization and to improper escape of attributes when using objects during SSR (Server-Side Rendering). Exploiting this vulnerability is possible via objects with a custom toString() function.

Weakness: CWE-79

Which versions are affected by CVE-2022-25875?

2 open source packages ship an affected version, including svelte. It affects 1 product.

PackageAffectedFixed in
svelte npmAll versions3.49.0
svelte npmAll versions3.49.0

Products include Svelte Svelte.

How do I fix CVE-2022-25875?

Upgrade svelte to 3.49.0 or later.

Is CVE-2022-25875 being exploited?

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

Sources

Also known as GHSA-wv8q-r932-8hc7, SNYK-JS-SVELTE-2931080.

Is CVE-2022-25875 in your software?

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

Check your SBOMs for free