{"id":"GHSA-hwmc-r6mf-jh83","summary":"Schema.org has cross-site scripting (XSS) via script break-out in toScript() output","details":"Schema.org has a cross-site scripting (XSS) vulnerability via script break-out in toScript() output.","modified":"2026-09-10T03:50:12.332537462Z","published":"2026-07-01T18:32:31Z","database_specific":{"nvd_published_at":null,"cwe_ids":["CWE-79"],"severity":"LOW","github_reviewed":true,"github_reviewed_at":"2026-07-01T18:32:31Z"},"references":[{"type":"WEB","url":"https://github.com/spatie/schema-org/pull/242"},{"type":"WEB","url":"https://github.com/spatie/schema-org/commit/be389b4759214c11cc1364a16e34a929c5af5a88"},{"type":"WEB","url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/spatie/schema-org/2026-04-20.yaml"},{"type":"PACKAGE","url":"https://github.com/spatie/schema-org"},{"type":"WEB","url":"https://github.com/spatie/schema-org/releases/tag/4.0.2"}],"affected":[{"package":{"name":"spatie/schema-org","ecosystem":"Packagist","purl":"pkg:composer/spatie/schema-org"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.23.1"},{"fixed":"3.23.2"}]}],"versions":["3.23.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-hwmc-r6mf-jh83/GHSA-hwmc-r6mf-jh83.json"}},{"package":{"name":"spatie/schema-org","ecosystem":"Packagist","purl":"pkg:composer/spatie/schema-org"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.0"},{"fixed":"4.0.2"}]}],"versions":["4.0.0","4.0.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-hwmc-r6mf-jh83/GHSA-hwmc-r6mf-jh83.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}