Schema.org has cross-site scripting (XSS) via script break-out in toScript() output
Priority LOW 38CWE-79Published · Updated
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-79.
Summary
Schema.org has a cross-site scripting (XSS) vulnerability via script break-out in toScript() output.
Why it matters now
Fix Fixed spatie/schema-org (Packagist): 3.23.2, 4.0.2
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | spatie/schema-org (Packagist) | 3.23.1 to before 3.23.2 | 3.23.2 | Patch available | GHSA-hwmc-r6mf-jh83 |
| — | spatie/schema-org (Packagist) | 4.0.0 to before 4.0.2 | 4.0.2 | Patch available | GHSA-hwmc-r6mf-jh83 |
- spatie/schema-org (Packagist) Vendor— Affected 3.23.1 to before 3.23.2 Fixed in 3.23.2 Patch available GHSA-hwmc-r6mf-jh83
- spatie/schema-org (Packagist) Vendor— Affected 4.0.0 to before 4.0.2 Fixed in 4.0.2 Patch available GHSA-hwmc-r6mf-jh83
Remediation
- Fix · GHSA-hwmc-r6mf-jh83 spatie/schema-org (Packagist) Fixed in 3.23.2 Advisory →
- Fix · GHSA-hwmc-r6mf-jh83 spatie/schema-org (Packagist) Fixed in 4.0.2 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-hwmc-r6mf-jh83
References
Other 5
- 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
- https://github.com/spatie/schema-org/releases/tag/4.0.2
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences