CVE-2026-142649
Received Received - Intake

Improper Input Validation in Laravel Framework

Vulnerability report for CVE-2026-142649, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-03

Last updated on: 2026-12-03

Assigner: GitHub, Inc.

Description

Laravel is a web application framework. Prior to 12.67.0 and 13.26.0, The in validation rule (and Rule::in, and not_in via the same code) compares the scalar input to the allowlist with a non-strict in_array(). PHP 8 then compares numeric strings numerically, so many values that are not literally in the list pass validation , including whitespace-padded, leading-zero, signed, and scientific-notation forms, and an embedded newline. The value returned by validated() / valid() is the raw, un-canonicalized input, so the attacker-controlled bytes flow through to the application even though the rule was supposed to constrain them to a fixed set. The array branch of the same method already compares as strings (array_diff), so this is an internal inconsistency, not intended behavior. Any allowlist of numeric values , feature flags (in:0,1), status codes, role/tenant/enum IDs stored as integers may be bypassed with an equivalent-but-not-identical representation. This issue is fixed in versions 12.67.0 and 13.26.0.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-03
Last Modified
2026-12-03
Generated
2026-12-03
AI Q&A
2026-12-03
EPSS Evaluated
N/A
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
laravel framework to 13.26.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-697 The product compares two entities in a security-relevant context, but the comparison is incorrect.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects Laravel's validation rule 'in' and similar methods like Rule::in. It allows bypassing intended restrictions by exploiting PHP's loose comparison in in_array(). Attackers can pass values like whitespace-padded, leading-zero, signed, or scientific-notation forms that are numerically equivalent but not identical to allowed values. For example, ' 1' or '+1' could bypass a rule expecting only '1'.

Detection Guidance

Check Laravel framework version with: composer show laravel/framework. If version is below 12.67.0 or 13.26.0, the system is vulnerable. Review validation rules using Rule::in() or in: in application code to identify potential bypass points.

Impact Analysis

If exploited, this vulnerability could allow unauthorized access or actions by bypassing validation rules meant to restrict input. For instance, feature flags, status codes, or role IDs stored as integers could be manipulated to gain unintended privileges or access restricted data. The impact depends on how the application uses the 'in' validation rule.

Compliance Impact

This vulnerability could lead to non-compliance by allowing unauthorized data access or modification, violating principles of least privilege and data integrity required by GDPR and HIPAA. If exploited, it may result in unauthorized processing or disclosure of personal or sensitive health data, triggering regulatory penalties.

Mitigation Strategies

Upgrade Laravel framework to version 12.67.0 or 13.26.0 or later. Review and update validation rules to ensure strict comparisons are enforced. Test applications thoroughly after upgrade to confirm validation works as intended.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-142649. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...