Laravel Cross-site Scripting (XSS) vulnerability in blade templating
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.
As published by the sources
Affected packages
- Affected
>=7.0.0,<7.1.2Fixed in7.1.2
Derived from the fixed versions above
What to do
Upgrade laravel/framework to 7.1.2 or later.
composer update laravel/framework --with-dependencies
To see which version you have installed, run composer show vendor/package. Running composer audit lists the known advisories that match your installed versions.
Quoted from the original advisory
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.
References
- Advisoryhttps://blog.laravel.com/laravel-cookie-security-releases
- Webhttps://github.com/laravel/framework/pull/31945
- Webhttps://blog.laravel.com/security-laravel-712-released
- Webhttps://github.com/FriendsOfPHP/security-advisories/blob/master/laravel/framework/2020-03-13-1.yaml
- Packagehttps://github.com/laravel/framework
- Webhttps://github.com/laravel/framework/releases/tag/v7.1.2