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

Not scored Published

An attacker can inject malicious scripts into Laravel applications via Blade templating, potentially compromising user sessions or data.

Exploited in the wild
Not known
Login needed
Not stated
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is GHSA-297g-xg4h-7w4c?

GHSA-297g-xg4h-7w4c is a cross-site scripting vulnerability in illuminate/view, published on 15 May 2024. It can be exploited over the network, and only if a user opens a file or follows a link.

Official description

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

Which versions are affected by GHSA-297g-xg4h-7w4c?

2 open source packages ship an affected version, including illuminate/view.

PackageAffectedFixed in
illuminate/view PackagistFrom 7.0.07.1.2
illuminate/view PackagistFrom 7.0.07.1.2

How do I fix GHSA-297g-xg4h-7w4c?

Upgrade illuminate/view to 7.1.2 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is GHSA-297g-xg4h-7w4c being exploited?

There is no known exploitation of GHSA-297g-xg4h-7w4c in the wild and no public exploit code.

Sources

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

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free