Skip to content

Resource-Exhaustion DoS via Unbounded Acceptance Note Reaching Synchronous CommonMark Rendering

Moderate
snipe published GHSA-4vcv-fc5x-jjwv Aug 24, 2026

Package

No package listed

Affected versions

<= 8.7.0

Patched versions

8.7.1

Description

An authenticated Snipe-IT user with an assigned pending checkout acceptance can submit an unbounded note field to POST /account/accept/{acceptance}. The endpoint has no server-side length limit on the note; the value is persisted as-is (the underlying checkout_acceptances.note column is TEXT) and forwarded to AcceptanceItemDeclinedNotification, where it is rendered synchronously through the mail markdown pipeline by league/commonmark 2.8.2. Snipe-IT's default queue driver is sync (config/queue.php), so on any default install the parser work runs inside the request cycle and consumes PHP-worker CPU per submission.

Reporter demonstrated approximately 847 ms per render at 40,005 bytes and approximately 2.6 s per render at 80,000 bytes, on v8.7.0-pre. No confidentiality, integrity, privilege escalation, or code execution was demonstrated. The company/assignment authorization checks on the endpoint continue to function correctly; the defect is unbounded input reaching a vulnerable synchronous parser path.

Root cause is two-layer:

  1. league/commonmark was pinned at 2.8.2 via Laravel's transitive ^2.8.1 requirement, which is affected by GHSA-2q4p-g7hv-5rgv.
  2. AcceptanceController::store() accepted the note field without a server-side length limit before persistence or notification.

Patches

Fixed in commit 66770cfe20cb135e2b7022c7a83d01e6783c914a ("Fixed FD-56927 - upgraded commonmark, added max to comments"), 2026-08-11.

Two-layer fix:

  • composer.json: added a direct require for league/commonmark: ^2.9.0 to override Laravel's ^2.8.1 peer constraint. composer.lock now pins league/commonmark 2.10.0, closing the upstream parser DoS.
  • app/Http/Controllers/Account/AcceptanceController.php: added $request->validate(['note' => 'nullable|string|max:1000']) at the top of store(), before any DB or notification work. Defense in depth against future parser regressions and against any other input path that might reach markdown rendering.

Regression coverage added in tests/Feature/CheckoutAcceptances/Ui/AssetAcceptanceTest.php (test_oversized_note_is_rejected_before_persistence_or_notification, test_normal_length_note_still_works).

Workarounds

Operators running an affected release without upgrading can mitigate the immediate DoS surface by any of:

  • Configuring a non-synchronous queue driver in config/queue.php / .env (moves notification rendering off the request cycle so parser work does not block user-facing requests).
  • Rate-limiting POST /account/accept/{acceptance} at the reverse-proxy or WAF layer.

Neither is a substitute for upgrading, which closes both the parser vulnerability and the missing input bound.

Credit

PizzaStev3 (Ahmed Mohammed).

Severity

Moderate

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CVE ID

No known CVE

Weaknesses

Uncontrolled Resource Consumption

The product does not properly control the allocation and maintenance of a limited resource. Learn more on MITRE.

Improper Validation of Specified Quantity in Input

The product receives input that is expected to specify a quantity (such as size or length), but it does not validate or incorrectly validates that the quantity has the required properties. Learn more on MITRE.

Credits