GHSA-69rh-hccr-cxrj

Suggest an improvement
Source
https://github.com/advisories/GHSA-69rh-hccr-cxrj
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/05/GHSA-69rh-hccr-cxrj/GHSA-69rh-hccr-cxrj.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-69rh-hccr-cxrj
Aliases
Published
2025-05-27T19:47:00Z
Modified
2025-05-30T15:40:00.632431Z
Severity
  • 6.6 (Medium) CVSS_V4 - 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 CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2025-05-30T06:15:28Z",
    "cwe_ids": [
        "CWE-1173",
        "CWE-20"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2025-05-27T19:47:00Z"
}
References

Affected packages

Packagist / lomkit/laravel-rest-api

Package

Name
lomkit/laravel-rest-api
Purl
pkg:composer/lomkit/laravel-rest-api

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.13.0

Affected versions

v0.*

v0.1.0-beta
v0.2.0-beta
v0.3.0-beta
v0.4.0-beta
v0.4.1
v0.4.2
v0.4.3
v0.4.4
v0.4.5
v0.4.6

v1.*

v1.0.0
v1.0.1
v1.0.2
v1.0.3
v1.0.4
v1.0.5
v1.0.6
v1.0.7
v1.1.0
v1.1.1
v1.1.2
v1.1.3
v1.1.4
v1.2.0

v2.*

v2.0.0
v2.1.0
v2.1.1
v2.1.2
v2.2.0
v2.3.0
v2.3.1
v2.3.2
v2.3.3
v2.4.0
v2.4.1
v2.4.2
v2.5.0
v2.5.1
v2.5.2
v2.6.0
v2.7.0
v2.8.0
v2.8.1
v2.8.2
v2.8.3
v2.8.4
v2.8.5
v2.8.6
v2.8.7
v2.9.0
v2.10.0
v2.11.0
v2.12.0