Advisory

GHSA-3qxh-p7jc-5xh6

Also known as: CVE-2025-27109

Summary

Solid Lacks Escaping of HTML in JSX Fragments allows for Cross-Site Scripting (XSS)

Details

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()}
    </>
  );

Severity

High Basis: The source's own band: HIGH

Dates

Published
2025-02-25 17:49 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

solid-js

npm · All systems

Affected

  • introduced 0, fixed 1.9.4 (semver)

Fixed versions

1.9.4

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences