# GHSA-hwmc-r6mf-jh83: Schema.org has cross-site scripting (XSS) via script break-out in toScript() output

- Severity: Low (CVSS:4.0, scored by GitHub) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-07-01T18:32:31.000Z
- Modified: 2026-09-10T03:50:12.332Z
- Weaknesses: CWE-79

## Description

Schema.org has a cross-site scripting (XSS) vulnerability via script break-out in toScript() output.

(As written by GitHub Advisory Database.)

## Affected

- spatie/schema-org (Packagist): from 3.23.1 before 3.23.2; from 4.0.0 before 4.0.2

## References

- <https://github.com/spatie/schema-org/pull/242> (web)
- <https://github.com/spatie/schema-org/commit/be389b4759214c11cc1364a16e34a929c5af5a88> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/spatie/schema-org/2026-04-20.yaml> (web)
- <https://github.com/spatie/schema-org> (package)
- <https://github.com/spatie/schema-org/releases/tag/4.0.2> (web)

## Sources

- GitHub Advisory Database: [GHSA-hwmc-r6mf-jh83](https://github.com/advisories/GHSA-hwmc-r6mf-jh83), CC-BY-4.0, modified 2026-09-10

---

Page: https://cve.day/GHSA-hwmc-r6mf-jh83 · Whole record: https://cve.day/GHSA-hwmc-r6mf-jh83.json · Rebuilt by cve.day 2026-11-25T22:56:32.344Z
