Lack of Escaping of HTML in JSX Fragments allows for Cross-site Scripting in solid-js
cve-program · CVE-2025-27109
Publishedsolid-js is a declarative, efficient, and flexible JavaScript library for building user interfaces. In affected versions Inserts/JSX expressions inside illegal inlined JSX fragments lacked escaping, allowing user input to be rendered as HTML when put directly inside JSX fragments. This issue has been addressed in version 1.9.4 and all users are advised to upgrade. There are no known workarounds for this vulnerability.
Read the publisher's advisoryeuvd · EUVD-2025-5079
Publishedsolid-js is a declarative, efficient, and flexible JavaScript library for building user interfaces. In affected versions Inserts/JSX expressions inside illegal inlined JSX fragments lacked escaping, allowing user input to be rendered as HTML when put directly inside JSX fragments. This issue has been addressed in version 1.9.4 and all users are advised to upgrade. There are no known workarounds for this vulnerability.
Read the publisher's advisorynvd · CVE-2025-27109
Publishedsolid-js is a declarative, efficient, and flexible JavaScript library for building user interfaces. In affected versions Inserts/JSX expressions inside illegal inlined JSX fragments lacked escaping, allowing user input to be rendered as HTML when put directly inside JSX fragments. This issue has been addressed in version 1.9.4 and all users are advised to upgrade. There are no known workarounds for this vulnerability.
Read the publisher's advisoryosv · GHSA-3qxh-p7jc-5xh6
PublishedInserts/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. ```js const [text] = createResource(() => { return new URL(getRequestEvent().request.url).searchParams.get("text"); }); return ( <> Text: {text()} </> ); ```
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2025-27109 · CVE overview and exploitation status
cve-program · CVE-2025-27109
- https://github.com/solidjs/solid/security/advisories/GHSA-3qxh-p7jc-5xh6
- https://github.com/solidjs/solid/commit/b93956f28ed75469af6976a98728e313d0edd236
euvd · EUVD-2025-5079
- https://github.com/solidjs/solid/security/advisories/GHSA-3qxh-p7jc-5xh6
- https://github.com/solidjs/solid/commit/b93956f28ed75469af6976a98728e313d0edd236
nvd · CVE-2025-27109
- https://github.com/solidjs/solid/commit/b93956f28ed75469af6976a98728e313d0edd236
- https://github.com/solidjs/solid/security/advisories/GHSA-3qxh-p7jc-5xh6
osv · GHSA-3qxh-p7jc-5xh6
Related changes
Linked by CVE identifierNo related changes are available here.