GitHub Advisoryadvisory · Packagist

GHSA-69rh-hccr-cxrj Laravel Rest Api has a Search Validation Bypass

MEDIUM Published 2025-05-27 Modified 2025-05-30 Official page ↗
Aliases
CVE-2025-48490
Ecosystem
Packagist
Packages
lomkit/laravel-rest-api
Severity
Moderate
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U
Weaknesses
CWE-1173, CWE-20
Reviewed
2025-05-27

Affected packages

• Packagist lomkit/laravel-rest-api: < 2.13.0 → fixed in 2.13.0

Description

A validation bypass vulnerability was discovered prior to version 2.13.0, where multiple validations defined for the same attribute could be silently overridden. Due to how the framework merged validation rules across multiple contexts (such as index, store, and update actions), malicious actors could exploit this behavior by crafting requests that bypass expected validation rules, potentially injecting unexpected or dangerous parameters into the application. Impact: This could lead to unauthorized data being accepted or processed by the API, depending on the context in which the validation was bypassed. Patch: The issue was fixed in PR #172 by ensuring that multiple rule definitions are merged correctly rather than overwritten.

Related

Alias · CVE (1)

Weakness · CWE (2)

  • CWE-1173 Improper Use of Validation Framework weakness
  • CWE-20 Improper Input Validation weakness

References