Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. lomkit/laravel-rest-api
  4. ›
  5. CVE-2025-48490

CVE-2025-48490: Laravel Rest Api has a Search Validation Bypass

May 27, 2025 (updated May 30, 2025)

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.

References

  • github.com/Lomkit/laravel-rest-api
  • github.com/Lomkit/laravel-rest-api/commit/88b14587b4efd7e59d7379658c606d325bb513b4
  • github.com/Lomkit/laravel-rest-api/pull/172
  • github.com/Lomkit/laravel-rest-api/security/advisories/GHSA-69rh-hccr-cxrj
  • github.com/advisories/GHSA-69rh-hccr-cxrj
  • nvd.nist.gov/vuln/detail/CVE-2025-48490

Code Behaviors & Features

Detect and mitigate CVE-2025-48490 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.13.0

Fixed versions

  • 2.13.0

Solution

Upgrade to version 2.13.0 or above.

Weakness

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

Source file

packagist/lomkit/laravel-rest-api/CVE-2025-48490.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:19:10 +0000.