Advisory

GHSA-69rh-hccr-cxrj

Also known as: CVE-2025-48490

Summary

Laravel Rest Api has a Search Validation Bypass

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-05-27 19:47 UTC
Modified
2025-05-30 15:40 UTC

Affected packages and fixes

lomkit/laravel-rest-api

Packagist · All systems

Affected

  • introduced 0, fixed 2.13.0 (ecosystem)

Fixed versions

2.13.0

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences