Open-source package vulnerability · Composer (PHP)
GHSA-hwmc-r6mf-jh83: Schema.org has cross-site scripting (XSS) via script break-out in toScript() output
lowCVSS 4.0 1.3
Schema.org has a cross-site scripting (XSS) vulnerability via script break-out in toScript() output.
Published Jul 1, 2026
Affected packages
spatie/schema-org
- Ecosystem
- Composer (PHP)
- Affected
- >= 3.23.1, < 3.23.2
- Fixed in
- 3.23.2
- Check
composer show spatie/schema-org
spatie/schema-org
- Ecosystem
- Composer (PHP)
- Affected
- >= 4.0.0, < 4.0.2
- Fixed in
- 4.0.2
- Check
composer show spatie/schema-org
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Schema.org has a cross-site scripting (XSS) vulnerability via script break-out in toScript() output.
References
- https://github.com/spatie/schema-org/pull/242
- https://github.com/spatie/schema-org/commit/be389b4759214c11cc1364a16e34a929c5af5a88
- https://github.com/FriendsOfPHP/security-advisories/blob/master/spatie/schema-org/2026-04-20.yaml
- https://github.com/spatie/schema-org/releases/tag/4.0.2
- https://github.com/advisories/GHSA-hwmc-r6mf-jh83
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
