Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') Affecting laravel/framework package, versions >=12.45.0, <12.68.0<13.27.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.31% (23rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-LARAVELFRAMEWORK-21431474
  • published22 Oct 2026
  • disclosed22 Oct 2026
  • creditHristijan Manasijev

Introduced: 22 Oct 2026

NewCVE-2026-114508  (opens in a new tab)
CWE-470  (opens in a new tab)

How to fix?

Upgrade laravel/framework to version 12.68.0, 13.27.0 or higher.

Overview

laravel/framework is a PHP framework for web artisans.

Affected versions of this package are vulnerable to Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') via the ResolvesJsonApiElements trait in JSON:API resource loading, where an attacker with read-only access can trigger the loading of related model relationships in a way that empties related-table data. The flaw in compileResourceRelationships causes irreversible data loss and a crash of dependent functionality by incorrectly resolving and propagating nested relationship requests without proper validation of the caller's permissions or the scope of the requested relationships.

CVSS Base Scores

version 4.0
version 3.1