{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "12.67.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "introduced": "13.0.0"
                  },
                  {
                    "fixed": "13.26.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "fixed": "0db83d4177675d9290bee91f33f90b2b5828e56e"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v12.67.0",
                "range": [
                  {
                    "fixed": "fe2cdaba052cbb9f350761ccefc7ac221cbdf0b5"
                  }
                ],
                "source": "REFERENCES_TAG"
              },
              {
                "original_tag": "v13.26.0",
                "range": [
                  {
                    "fixed": "17f6e626e014dd9b4a380ae2924b590a129a5307"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "fe2cdaba052cbb9f350761ccefc7ac221cbdf0b5"
            },
            {
              "introduced": "3e33f431a05365d008742ff8001b92641086d5f8"
            },
            {
              "fixed": "17f6e626e014dd9b4a380ae2924b590a129a5307"
            },
            {
              "fixed": "0db83d4177675d9290bee91f33f90b2b5828e56e"
            }
          ],
          "repo": "https://github.com/laravel/framework",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-h2hg-mfj4-rg7q"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-697"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142649.json"
  },
  "details": "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.",
  "id": "CVE-2026-142649",
  "modified": "2026-12-03T00:46:10.663174398Z",
  "published": "2026-12-02T23:05:11.888Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142649.json"
    },
    {
      "type": "FIX",
      "url": "https://github.com/laravel/framework/commit/0db83d4177675d9290bee91f33f90b2b5828e56e"
    },
    {
      "type": "FIX",
      "url": "https://github.com/laravel/framework/pull/61146"
    },
    {
      "type": "WEB",
      "url": "https://github.com/laravel/framework/releases/tag/v12.67.0"
    },
    {
      "type": "WEB",
      "url": "https://github.com/laravel/framework/releases/tag/v13.26.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/laravel/framework/security/advisories/GHSA-h2hg-mfj4-rg7q"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142649"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Laravel: `in` / `Rule::in` validation rule bypass via loose comparison"
}