Security mailing lists by PureSourceCode

CVE-2026-142649

MEDIUM 5.3CVSS 3.1

Laravel: `in` / `Rule::in` validation rule bypass via loose comparison

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.

Published
3 Dec 2026
Last modified
3 Dec 2026
Assigned by
security-advisories@github.com
NVD status
Awaiting Analysis
Weakness
CWE-697
Also known as
GHSA-h2hg-mfj4-rg7q
Sources
NVDJSONCVE ListJSONOSV GHSA-h2hg-mfj4-rg7qJSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
CVE List GitHub_M CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
OSV GitHub CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
CVE List CISA-ADP SSVC Exploitation: none; Automatable: yes; Technical Impact: partial

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List laravel framework = < 12.67.0; = >= 13.0.0, < 13.26.0
OSV Packagist laravel/framework < 12.67.0 12.67.0
OSV Packagist laravel/framework >= 13.0.0, < 13.26.0 13.26.0

References

History

  • 3 Dec 2026 21:56 UTC · NVD: status Received → Awaiting Analysis
  • 3 Dec 2026 21:56 UTC · OSV: first stored (published 3 Dec 2026)
  • 3 Dec 2026 17:56 UTC · NVD: updated (other details)
  • 3 Dec 2026 16:56 UTC · CVE List: updated (other details)
  • 3 Dec 2026 00:30 UTC · NVD: first stored (published 3 Dec 2026)
  • 2 Dec 2026 23:30 UTC · CVE List: first stored (published 2 Dec 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.