Laravel does not properly constrain the host portion of a password-reset URL
Laravel 5.4.x before 5.4.22 does not properly constrain the host portion of a password-reset URL, which makes it easier for remote attackers to conduct phishing attacks by specifying an attacker-controlled host.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | illuminate/auth | >= 5.3.0, <= 5.3.31, >= 5.4.0, < 5.4.22 | 5.4.22 |
| Composer package | laravel/framework | >= 5.3.0, <= 5.3.31, >= 5.4.0, < 5.4.22 | 5.4.22 |
| Composer package | laravel/laravel | >= 5.4.0, < 5.4.22 | 5.4.22 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-9303
- https://github.com/laravel/framework/commit/cef10551820530632a86fa6f1306fee95c5cac43
- https://github.com/FriendsOfPHP/security-advisories/blob/master/illuminate/auth/CVE-2017-9303.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/laravel/framework/CVE-2017-9303.yaml
- https://laravel-news.com/laravel-5-4-22-is-now-released-and-includes-a-security-fix
- https://laravel.com/docs/5.4/releases#laravel-5.4.22
- https://web.archive.org/web/20171021180417/http://www.securityfocus.com/bid/98776
- http://www.securityfocus.com/bid/98776
- CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N- Weakness (CWE)
CWE-20- Platform
- Composer
- Package
illuminate/auth, laravel/framework, laravel/laravel- Disclosed
- 17.05.2022
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-rc8x-jrrc-frfv - CC BY 4.0
Vulnerability history: laravel/framework
All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 26
- First → latest
- 01.2021 09.2026
- Without a fix
- 0
- Exploited in attacks
- 1
Severity breakdown
- Critical 2
- High 11
- Medium 12
- Low 1
Disclosures per year
- 2021: 5
- 2022: 5
- 2023: 0
- 2024: 10
- 2025: 3
- 2026: 3
-
Laravel does not properly constrain the host portion of a password-reset URL this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.