Open-source package vulnerability · npm
CVE-2025-27109: Solid Lacks Escaping of HTML in JSX Fragments allows for Cross-Site Scripting (XSS)
highCVSS 3.1 7.3GHSA-3qxh-p7jc-5xh6
Inserts/JSX expressions inside illegal inlined JSX fragments lacked escaping, allowing user input to be rendered as HTML when put directly inside JSX fragments. For instance, ?text= would trigger XSS here.
Published Feb 25, 2025
Affected packages
solid-js
- Ecosystem
- npm
- Affected
- < 1.9.4
- Fixed in
- 1.9.4
- Check
npm ls solid-js
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Inserts/JSX expressions inside illegal inlined JSX fragments lacked escaping, allowing user input to be rendered as HTML when put directly inside JSX fragments.
For instance, ?text=<svg/onload=alert(1)> would trigger XSS here.
const [text] = createResource(() => {
return new URL(getRequestEvent().request.url).searchParams.get("text");
});
return (
<>
Text: {text()}
</>
);Credited to ryansolid, nsysean.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
