CVE-2025-48490: Lomkit/laravel rest api Laravel Rest Api Has A Vulnerability

MODERATE
Advisory Identifier: GHSA-69rh-hccr-cxrj
CWE-1173 CWE-20
Published
Advisory Summary

CVE-2025-48490 is a MODERATE laravel rest api has a vulnerability (CWE-1173: Improper Use of Validation Framework) affecting Lomkit/laravel rest api libraries in the Packagist ecosystem. The issue involves laravel rest api has a search validation bypass. Remediation is available by upgrading affected packages to version 2.13.0.

CVE-2025-48490 at a Glance

CVE Identifier CVE-2025-48490
GHSA Identifier GHSA-69rh-hccr-cxrj
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-1173: Improper Use of Validation Framework
Affected Product Lomkit/laravel rest api
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2025-48490

To remediate this vulnerability, upgrade all affected Lomkit/laravel rest api dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

lomkit/laravel-rest-api fixed: 2.13.0
Upgrade lomkit/laravel-rest-api to 2.13.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for lomkit/laravel-rest-api

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-48490, inspect your project dependencies for Lomkit/laravel rest api:

inspect dependencies for lomkit/laravel-rest-api

Analyze the terminal output to locate any version of Lomkit/laravel rest api in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.13.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-1173: Improper Use of Validation Framework, where the product does not use, or incorrectly uses, an input validation framework that is provided by the source language or an independent library. In Lomkit/laravel rest api, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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](https://github.com/Lomkit/laravel-rest-api/pull/172) by ensuring that multiple rule definitions are merged correctly rather than overwritten.

CVE-2025-48490 Affected Lomkit/laravel rest api Versions

1 component(s)
Fixed Versions:
2.13.0
Product / Package Ecosystem Affected Versions Fixed Version
lomkit/laravel-rest-api
Packagist
< 2.13.0
2.13.0

References

Frequently Asked Questions

What is CVE-2025-48490?
CVE-2025-48490 is a security vulnerability in Lomkit/laravel rest api involving Laravel Rest Api has a Search Validation Bypass under CWE-1173: Improper Use of Validation Framework.
Which Lomkit/laravel rest api versions are affected?
Affected versions include releases prior to 2.13.0 across affected packages: lomkit/laravel-rest-api.
What version fixes CVE-2025-48490?
Upgrading to 2.13.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is lomkit/laravel-rest-api affected?
Yes, lomkit/laravel-rest-api is affected in releases prior to 2.13.0. Upgrade your dependency to 2.13.0 or later.
What CWE is associated with CVE-2025-48490?
CVE-2025-48490 is classified under CWE-1173: Improper Use of Validation Framework (The product does not use, or incorrectly uses, an input validation framework that is provided by the source language or an independent library.).
How can I check Packagist dependencies for CVE-2025-48490?
Run the dependency tree command: 'inspect dependencies for lomkit/laravel-rest-api'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-69rh-hccr-cxrj",
  "modified" : "2025-05-30T15:18:00Z",
  "published" : "2025-05-27T19:47:00Z",
  "aliases" : [ "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.\n\nImpact:\n\nThis could lead to unauthorized data being accepted or processed by the API, depending on the context in which the validation was bypassed.\n\nPatch:\n\nThe issue was fixed in [PR #172](https://github.com/Lomkit/laravel-rest-api/pull/172) by ensuring that multiple rule definitions are merged correctly rather than overwritten.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "lomkit/laravel-rest-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.13.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/Lomkit/laravel-rest-api/security/advisories/GHSA-69rh-hccr-cxrj"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-48490"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Lomkit/laravel-rest-api/pull/172"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Lomkit/laravel-rest-api/commit/88b14587b4efd7e59d7379658c606d325bb513b4"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Lomkit/laravel-rest-api"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1173", "CWE-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-05-27T19:47:00Z",
    "nvd_published_at" : "2025-05-30T06:15:28Z"
  }
}