---
id: CVE-2026-18737
title: >-
  Shlink contains a blind SQL injection vulnerability that allows any
  authenticated API key holder to inject arbitrary SQL fragments by supplying an
  unvalidated direction value in the orderBy query parameter of the tag
  statistics endpoint.…
summary: >-
  Shlink contains a blind SQL injection vulnerability that allows any
  authenticated API key holder to inject arbitrary SQL fragments by supplying an
  unvalidated direction value in the orderBy query parameter of the tag
  statistics endpoint.…
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'
cwe:
  - CWE-89
published: '2026-08-03'
updated: '2026-09-09'
sourceUpdated: '2026-09-09T20:35:08.537'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-18737'
references:
  - url: 'https://github.com/shlinkio/shlink'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/theopaid/SQL-injection-in-GET-rest-v-n-tags-stats-via-the-orderBy-parameter-shlink-
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/shlink-blind-sql-injection-via-tags-stats-orderby-parameter
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/theopaid/SQL-injection-in-GET-rest-v-n-tags-stats-via-the-orderBy-parameter-shlink-
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
epss: 0.00301
epssPercentile: 0.20445
ingestedAt: '2026-09-09T21:22:45.522Z'
---

## Overview

Shlink contains a blind SQL injection vulnerability that allows any authenticated API key holder to inject arbitrary SQL fragments by supplying an unvalidated direction value in the orderBy query parameter of the tag statistics endpoint. Attackers can craft a malicious direction string containing SQL subqueries that flows unsanitized into a Doctrine QueryBuilder ORDER BY clause, enabling time-based, boolean-oracle, and error-based extraction of sensitive data including long URLs, visitor records, IP addresses, geolocation data, user agents, and hashed API key secrets from any tenant.

## Remediation

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