NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
🐘
🐘 Packagist
Not in CISA KEV
MEDIUM severity

Laravel Cross-site Scripting vulnerability in blade templatingGHSA-297g-xg4h-7w4c

MEDIUMFix: laravel/framework#31945

GHSA-297g-xg4h-7w4c is a medium-severity (CVSS 4.7) vulnerability in illuminate/view. A fix is available for illuminate/view — see the affected versions and patch details below.

Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Nov 29, 2024 · OSV.dev, FIRST.org (EPSS)

Real-World Exposure

1 pkg affected
🐘illuminate/view

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

Laravel is prone to a Cross-site Scripting vulnerability in blade templating.

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐘Packagistilluminate/view≥ 7.0.0&&< 7.1.27.1.2composer require illuminate/view:^7.1.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 illuminate/view, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update illuminate/view to 7.1.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-297g-xg4h-7w4c 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

Laravel is prone to a Cross-site Scripting vulnerability in blade templating.
O3 Security · Impact-Aware SCA

Is GHSA-297g-xg4h-7w4c in your dependencies?

Find it across Packagist, including transitive dependencies.

Laravel Cross-site Scripting vulnerability in blade templating