CVE-2026-142635: Laravel IP Spoofing Vulnerability

MODERATE
Advisory Identifier: GHSA-559m-v249-7qw2
CVSS 6.5
CWE-346
Published
Advisory Summary

CVE-2026-142635 is a MODERATE (CVSS 6.5) ip spoofing vulnerability (CWE-346: Origin Validation Error) affecting Laravel libraries in the Packagist ecosystem. The issue involves ip spoofing via host header in trustproxies middleware forge/vapor auto-detection. Remediation is available by upgrading affected packages to version 13.43.0, 12.73.0.

CVE-2026-142635 at a Glance

CVE Identifier CVE-2026-142635
GHSA Identifier GHSA-559m-v249-7qw2
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-346: Origin Validation Error
Affected Product Laravel
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 6.5

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:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2026-142635

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.

laravel/framework fixed: 13.43.0
Upgrade laravel/framework to 13.43.0
laravel/framework fixed: 12.73.0
Upgrade laravel/framework to 12.73.0
Verify Direct and Transitive Dependencies

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-142635, 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-346: Origin Validation Error, where the product does not properly verify that the source of data or communication is valid. 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

### Summary On applications with no trusted proxies configured, Laravel could treat a request as coming through a trusted Forge or Vapor proxy based on a header the visitor controls. An attacker could use this to fake their IP address and make an insecure request look like HTTPS. This can let an attacker get around IP-based rate limits, such as login throttling, and IP allowlists. Only applications that haven't configured trusted proxies, and whose web server accepts any hostname, are affected. ## Patch - Fixed in [#62484](https://github.com/laravel/framework/pull/62484)

CVE-2026-142635 Affected Laravel Versions

2 component(s)
Fixed Versions:
13.43.012.73.0
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-142635?
CVE-2026-142635 is a security vulnerability in Laravel involving IP Spoofing via Host Header in TrustProxies Middleware Forge/Vapor Auto-Detection under CWE-346: Origin Validation Error.
Which Laravel versions are affected?
Affected versions include releases prior to 13.43.0, 12.73.0 across affected packages: laravel/framework.
What version fixes CVE-2026-142635?
Upgrading to 13.43.0, 12.73.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is laravel/framework affected?
Yes, laravel/framework is affected in releases prior to 13.43.0, 12.73.0. Upgrade your dependency to 13.43.0, 12.73.0 or later.
What is the CVSS score of CVE-2026-142635?
CVE-2026-142635 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2026-142635?
CVE-2026-142635 is classified under CWE-346: Origin Validation Error (The product does not properly verify that the source of data or communication is valid.).
How can I check Packagist dependencies for CVE-2026-142635?
Run the dependency tree command: 'inspect dependencies for laravel/framework'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-559m-v249-7qw2",
  "modified" : "2026-12-03T18:17:54Z",
  "published" : "2026-12-03T18:17:54Z",
  "aliases" : [ "CVE-2026-142635" ],
  "summary" : "Laravel: IP Spoofing via Host Header in TrustProxies Middleware Forge/Vapor Auto-Detection",
  "details" : "### Summary\n\nOn applications with no trusted proxies configured, Laravel could treat a request as coming through a trusted Forge or Vapor proxy based on a header the visitor controls. An attacker could use this to fake their IP address and make an insecure request look like HTTPS.\n\nThis can let an attacker get around IP-based rate limits, such as login throttling, and IP allowlists. Only applications that haven't configured trusted proxies, and whose web server accepts any hostname, are affected.\n\n## Patch\n\n- Fixed in [#62484](https://github.com/laravel/framework/pull/62484)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/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-559m-v249-7qw2"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-142635"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/laravel/framework/pull/62484"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/laravel/framework/commit/57702740fef5b8d3fc6e3cae05e66c832ef049db"
  }, {
    "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-346" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-12-03T18:17:54Z",
    "nvd_published_at" : "2026-12-02T23:18:42Z"
  }
}