Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🐘 Packagist
Not in CISA KEV

GHSA-hwmc-r6mf-jh83 — spatie/schema-org

Fix: spatie/schema-org#242

GHSA-hwmc-r6mf-jh83 is a security vulnerability in spatie/schema-org. A fix is available for spatie/schema-org — see the affected versions and patch details below.

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

Published
Jul 1, 2026
Updated
Sep 10, 2026
Affected
2 pkgs
Patched
2 / 2
Exploits
None indexed
Exploitation data as of Sep 10, 2026 · OSV.dev, FIRST.org (EPSS)

Real-World Exposure

2 pkgs affected
🐘spatie/schema-org🐘spatie/schema-org

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.

Description

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

Affected Packages

2 total 2 fixed
EcosystemPackageVulnerable rangeFix
🐘Packagistspatie/schema-org≥ 3.23.1&&< 3.23.23.23.2composer require spatie/schema-org:^3.23.2
🐘Packagistspatie/schema-org≥ 4.0.0&&< 4.0.24.0.2composer require spatie/schema-org:^4.0.2

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for spatie/schema-org, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update spatie/schema-org to 3.23.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-hwmc-r6mf-jh83 is resolved across your whole dependency graph.

  3. Workarounds

    Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.

Frequently Asked Questions

Schema.org has a cross-site scripting (XSS) vulnerability via script break-out in toScript() output.
O3 Security · Impact-Aware SCA

Is GHSA-hwmc-r6mf-jh83 in your dependencies?

Find it across Packagist, including transitive dependencies.

GHSA-hwmc-r6mf-jh83: spatie/schema XSS | O3 Security