GHSA-vr95-p7q6-8m9q: Laravel/framework Cross-Site Scripting Vulnerability
MODERATEGHSA-vr95-p7q6-8m9q is a MODERATE (CVSS 4.3) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Laravel/framework libraries in the Packagist ecosystem. The issue involves laravel cross-site scripting (xss) vulnerability in blade templating. Remediation is available by upgrading affected packages to version 7.1.2.
GHSA-vr95-p7q6-8m9q at a Glance
Security Impact
CVSS: 4.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N).
How to Fix GHSA-vr95-p7q6-8m9q
To remediate this vulnerability, upgrade all affected Laravel/framework dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade laravel/framework to 7.1.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for laravel/framework
How to Check if You Are Affected
To determine whether your application is affected by GHSA-vr95-p7q6-8m9q, inspect your project dependencies for Laravel/framework:
inspect dependencies for laravel/framework
Analyze the terminal output to locate any version of Laravel/framework in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.1.2), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Laravel/framework, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-vr95-p7q6-8m9q Affected Laravel/framework Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
laravel/framework
|
Packagist |
≥ 7.0.0
< 7.1.2
|
7.1.2
|
References
Frequently Asked Questions
What is GHSA-vr95-p7q6-8m9q?
Which Laravel/framework versions are affected?
What version fixes GHSA-vr95-p7q6-8m9q?
Is laravel/framework affected?
What is the CVSS score of GHSA-vr95-p7q6-8m9q?
What CWE is associated with GHSA-vr95-p7q6-8m9q?
How can I check Packagist dependencies for GHSA-vr95-p7q6-8m9q?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vr95-p7q6-8m9q",
"modified" : "2024-05-15T22:16:06Z",
"published" : "2024-05-15T22:16:06Z",
"aliases" : [ ],
"summary" : "Laravel Cross-site Scripting (XSS) vulnerability in blade templating",
"details" : "Laravel 7.1.2 addresses a possible XSS related attack vector in the Laravel 7.x Blade Component tag attributes when users are allowed to dictate the value of attributes. All Laravel 7.x users are encouraged to upgrade as soon as possible.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "laravel/framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.0.0"
}, {
"fixed" : "7.1.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/laravel/framework/pull/31945"
}, {
"type" : "WEB",
"url" : "https://blog.laravel.com/security-laravel-712-released"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/laravel/framework/2020-03-13-1.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/laravel/framework"
}, {
"type" : "WEB",
"url" : "https://github.com/laravel/framework/releases/tag/v7.1.2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-15T22:16:06Z",
"nvd_published_at" : null
}
}