Description
Schema.org has a cross-site scripting (XSS) vulnerability via script break-out in toScript() output.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | spatie/schema-org | >= 3.23.1, < 3.23.2 | 3.23.2 | GHSA-hwmc-r6mf-jh83 |
| Packagist | spatie/schema-org | >= 4.0.0, < 4.0.2 | 4.0.2 | GHSA-hwmc-r6mf-jh83 |
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