CVE-2026-142641: Laravel File Validation Bypass Vulnerability
MODERATECVE-2026-142641 is a MODERATE (CVSS 5.3) file validation bypass vulnerability (CWE-235: Improper Handling of Extra Parameters) affecting Laravel libraries in the Packagist ecosystem. The issue involves file validation bypass via empty input field colliding with an upload in request::all(). Remediation is available by upgrading affected packages to version 13.43.0, 12.73.0.
CVE-2026-142641 at a Glance
Security Impact
CVSS: 5.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:N/S:U/C:N/I:L/A:N).
How to Fix CVE-2026-142641
To remediate this vulnerability, upgrade all affected Laravel 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 13.43.0
Upgrade laravel/framework to 12.73.0
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 CVE-2026-142641, inspect your project dependencies for Laravel:
inspect dependencies for laravel/framework
Analyze the terminal output to locate any version of Laravel in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 13.43.0), 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-235: Improper Handling of Extra Parameters, where the product does not handle or incorrectly handles when the number of parameters, fields, or arguments with the same name exceeds the expected amount. In Laravel, 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
CVE-2026-142641 Affected Laravel Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
laravel/framework
|
Packagist |
≥ 13.0.0
< 13.43.0
|
13.43.0
|
|
laravel/framework
|
Packagist |
< 12.73.0
|
12.73.0
|
References
Frequently Asked Questions
What is CVE-2026-142641?
Which Laravel versions are affected?
What version fixes CVE-2026-142641?
Is laravel/framework affected?
What is the CVSS score of CVE-2026-142641?
What CWE is associated with CVE-2026-142641?
How can I check Packagist dependencies for CVE-2026-142641?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hxc4-wvjf-r59p",
"modified" : "2026-12-03T18:50:55Z",
"published" : "2026-12-03T18:50:55Z",
"aliases" : [ "CVE-2026-142641" ],
"summary" : "Laravel: File validation bypass via empty input field colliding with an upload in Request::all()",
"details" : "### Impact\n\nIn Laravel 13.x, `Request::all()` let a text input with the same name as an uploaded file take precedence over the file. If an attacker submitted an empty value alongside the file, request validation (including `FormRequest` validation) saw the empty value instead of the upload. Rules such as `nullable`, `image`, `mimes` and `max` were then skipped. Applications that validate an optional upload this way and then read it with `$request->file()` or `$request->hasFile()` could therefore store files that bypassed type and size validation.\n\n### Patches\n\nEmpty input values (`null`, empty string or empty array) no longer shadow a colliding uploaded file in `Request::all()`. This is fixed in laravel/framework 13.x by https://github.com/laravel/framework/pull/62521 and released in v13.43.0.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "laravel/framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "13.0.0"
}, {
"fixed" : "13.43.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "laravel/framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "12.73.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/laravel/framework/security/advisories/GHSA-hxc4-wvjf-r59p"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-142641"
}, {
"type" : "WEB",
"url" : "https://github.com/laravel/framework/pull/62504"
}, {
"type" : "WEB",
"url" : "https://github.com/laravel/framework/pull/62521"
}, {
"type" : "WEB",
"url" : "https://github.com/laravel/framework/commit/24f23f0ed72c31404f4f09cd5e36cb503012c8f2"
}, {
"type" : "WEB",
"url" : "https://github.com/laravel/framework/commit/4fbcd3b124f525906391f8a1b8ae51822f6913be"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/laravel/framework"
}, {
"type" : "WEB",
"url" : "https://github.com/laravel/framework/releases/tag/v12.73.0"
}, {
"type" : "WEB",
"url" : "https://github.com/laravel/framework/releases/tag/v13.43.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-235" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-12-03T18:50:55Z",
"nvd_published_at" : "2026-12-02T23:18:42Z"
}
}