Dev.to Security πŸ” Cybersecurity πŸ‘ 2 πŸ“– 2 min read

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

CVE-2026-142622: Cross-Origin Authorization Token Leakage via JSONP Callback in Laravel Broadcasting Vulnerability ID: CVE-2026-142622 CVSS Score: 3.1 Published: 2026-12-03 CVE-2026-142622 (GHSA-ww2c-pqp9-rvrq) is a

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

Vulnerability ID: CVE-2026-142622
CVSS Score: 3.1
Published: 2026-12-03

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.

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.

Technical Details

  • Vulnerability ID: CVE-2026-142622 / GHSA-ww2c-pqp9-rvrq
  • Weakness Type: CWE-346: Origin Validation Error
  • CVSS v3.1 Score: 3.1 Low (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N)
  • EPSS Score: 0.22% (13.70th Percentile)
  • Affected Component: laravel/framework (< 12.53.0) PusherBroadcaster
  • Attack Vector: Cross-Origin JSONP Script Inclusion on /broadcasting/auth
  • Primary Impact: Unauthorized subscription to private and presence WebSocket channels
  • CISA KEV Status: Not Listed

Affected Systems

  • laravel/framework (Pusher and Reverb Broadcasting Drivers)
  • laravel/framework: < 12.53.0 (Fixed in: 12.53.0)

Code Analysis

Commit: 4a92d0d

JSONP Check (#58971)

--- a/src/Illuminate/Broadcasting/BroadcastManager.php
+++ b/src/Illuminate/Broadcasting/BroadcastManager.php
@@ -328,7 +328,7 @@ protected function createReverbDriver(array $config)
      */
     protected function createPusherDriver(array $config)
     {
-        return new PusherBroadcaster($this->pusher($config));
+        return new PusherBroadcaster($this->pusher($config), $config['jsonp'] ?? false);
     }

--- a/src/Illuminate/Broadcasting/Broadcasters/PusherBroadcaster.php
+++ b/src/Illuminate/Broadcasting/Broadcasters/PusherBroadcaster.php
@@ -20,14 +20,22 @@ class PusherBroadcaster extends Broadcaster
      */
     protected $pusher;

+    /**
+     * Indicates if JSONP callbacks are allowed on authorization.
+     *
+     * @var bool
+     */
+    protected $allowJsonp = false;
+
     /**
      * Create a new broadcaster instance.
      *
      * @param  \Pusher\Pusher  $pusher
      */
-    public function __construct(Pusher $pusher)
+    public function __construct(Pusher $pusher, bool $allowJsonp = false)
     {
         $this->pusher = $pusher;
+        $this->allowJsonp = $allowJsonp;
     }

@@ -129,7 +137,7 @@ public function validAuthenticationResponse($request, $result)
      */
     protected function decodePusherResponse($request, $response)
     {
-        if (! $request->input('callback', false)) {
+        if (! $request->input('callback', false) || ! $this->allowJsonp) {
             return json_decode($response, true);
         }

Mitigation Strategies

  • Disable JSONP callback processing on broadcasting authentication endpoints so responses are strictly returned as JSON.
  • Restrict broadcasting authorization endpoints (/broadcasting/auth) to HTTP POST requests only and enforce CSRF token validation.
  • Enforce SameSite=Lax or SameSite=Strict on application session cookies to prevent cross-site subresource requests from carrying authentication credentials.

Remediation Steps:

  1. Run composer update laravel/framework to upgrade laravel/framework to version 12.53.0 or later.
  2. Inspect config/broadcasting.php to ensure 'jsonp' => true is not enabled on the pusher or reverb driver configurations.
  3. Review web server access logs for historical GET /broadcasting/auth requests containing a callback= query string parameter.

References

Read the full report for CVE-2026-142622 on our website for more details including interactive diagrams and full exploit analysis.

πŸ“° Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.