---
id: CVE-2026-31843
title: >-
  The goodoneuz/pay-uz Laravel package (<= 2.2.24) contains a critical
  vulnerability in the /payment/api/editable/update endpoint that allows
  unauthenticated attackers to overwrite existing PHP payment hook files
summary: >-
  The goodoneuz/pay-uz Laravel package (<= 2.2.24) contains a critical
  vulnerability in the /payment/api/editable/update endpoint that allows
  unauthenticated attackers to overwrite existing PHP payment hook files. The
  endpoint is exposed v…
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-284
published: '2026-04-16'
updated: '2026-08-10'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-31843'
references:
  - url: >-
      https://github.com/goodoneuz/pay-uz/blob/master/src/Http/Controllers/ApiController.php
    label: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
  - url: 'https://github.com/goodoneuz/pay-uz/blob/master/src/routes/web.php'
    label: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
  - url: 'https://github.com/shaxzodbek-uzb/pay-uz'
    label: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
  - url: 'https://packagist.org/packages/goodoneuz/pay-uz'
    label: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
tags:
  - nvd
epss: 0.01165
epssPercentile: 0.65928
ingestedAt: '2026-08-10T12:39:46.540Z'
---

## Overview

The goodoneuz/pay-uz Laravel package (<= 2.2.24) contains a critical vulnerability in the /payment/api/editable/update endpoint that allows unauthenticated attackers to overwrite existing PHP payment hook files. The endpoint is exposed via Route::any without authentication middleware, enabling remote access without credentials.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
