Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain valid Shelf account (any role)
-
DeliverySend crafted GET /assets?sortBy=field:asc,(SUBQUERY)
-
ExploitUnsanitized direction interpolated into Prisma.raw() ORDER BY clause
-
ExecutionDatabase evaluates attacker-controlled SQL subquery
-
PersistRead arbitrary tables including cross-organization data
-
ImpactExfiltrate sensitive asset and user records
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Exploitation requires a valid authenticated session in the Shelf application - any user role is sufficient, including the lowest-privilege role, as the vulnerability description explicitly states 'any authenticated user (any role).' The vulnerable endpoint is GET /assets and the injection vector is the sortBy query parameter's direction component (the value after the colon separator, e.g., field:INJECT_HERE). No special server configuration, non-default feature flag, or elevated privilege is required. Exploitation is limited by: (1) requirement for a valid Shelf account; (2) SSVC rates the attack Automatable:no, indicating the injection requires manual crafting rather than generic scanning payloads; (3) the impact is strictly read-only - no INSERT, UPDATE, or DELETE capability is implied by the vector. |
| Impact | CVSS 6.5 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N) accurately reflects the threat profile: network-reachable, low complexity, requiring only a valid authenticated session, with high confidentiality impact but no write or availability consequence. The most severe real-world impact is cross-organizational data exfiltration - the database is multi-tenant and the injected SQL is not scoped to the authenticated user's organization. EPSS at 0.04% (11th percentile) is low, consistent with SSVC's Automatable:no rating, indicating that while exploitation is technically straightforward once authenticated, mass automated scanning is not observed. SSVC Technical Impact is rated partial, which somewhat understates the cross-tenant read risk but reflects the read-only scope. The PoC is confirmed via regression tests in the vendor fix commit, not from an independent public exploit database - POC existence is confirmed but active weaponized exploitation is not. Authentication as a limiting factor meaningfully reduces blast radius compared to unauthenticated SQLi, but the absence of role restrictions means any account holder - including lowest-privilege roles - is a viable attacker. |
| Exploit ScenarioDerived | An attacker with any valid Shelf account sends a GET request to /assets?sortBy=createdAt:asc,(SELECT+table_name+FROM+information_schema.tables+LIMIT+1), embedding a SQL subquery in the sort direction field. The application parses the direction as the string 'asc,(SELECT ...)' and interpolates it unsanitized into a Prisma.raw() ORDER BY clause, causing the database to evaluate the subquery and potentially reflect results or trigger time-based inference. By iterating subqueries, the attacker can enumerate and dump all tables and rows in the database, including asset records, user data, and configuration belonging to other organizations sharing the same database instance. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 23, 2026
SQL injection in shelf.nu's /assets route exposes cross-organizational database contents to any authenticated user regardless of role, affecting versions 1.12 through 1.20.0. The injection point is the sortBy query parameter's direction component, where unsanitized input is passed directly into Prisma.raw() SQL construction. A PoC is confirmed by regression tests in the fix commit (GHSA-69xv-wmgg-3qp3); no CISA KEV listing exists and EPSS sits at 0.04%, indicating limited observed exploitation activity at time of analysis.
RemediationAI
Upgrade to shelf.nu version 1.20.1, which is the vendor-confirmed patched release per advisory GHSA-69xv-wmgg-3qp3. The underlying fix is in commit 5d35c15856dbf267fab4dccafd077ee7a6fa6f40, which centralizes SQL identifier validation via a shared isSafeSqlIdentifier utility and adds strict direction-value allowlisting with regression coverage. If an immediate upgrade is not feasible, restrict access to the /assets route to the smallest possible set of trusted users via network controls or application-layer authentication gating - this does not eliminate the vulnerability but limits the pool of accounts that can exploit it. Deploying a WAF rule to reject sortBy parameter values containing semicolons, parentheses, or SQL keywords can provide additional defense-in-depth but may block legitimate future sorting features and is not a substitute for patching. See https://github.com/Shelf-nu/shelf.nu/security/advisories/GHSA-69xv-wmgg-3qp3 for full vendor guidance.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Shelf (shelf.nu) is an open-source physical asset tracking web application. The vulnerability resides in apps/webapp/app/modules/asset/filter-parsing.ts, where the sortBy query parameter is parsed into a column name and sort direction before being interpolated into raw SQL via Prisma's Prisma.raw() method. The column name segment had a local SAFE_SQL_IDENTIFIER regex guard, but the direction segment (expected to be 'asc' or 'desc') received no equivalent validation, allowing attackers to append arbitrary SQL subqueries such as asc,(SELECT CASE WHEN 1=2 THEN 1 ELSE 1/0 END). CWE-20 (Improper Input Validation) captures this root cause: the application failed to validate that the direction token was strictly one of the allowed values before constructing raw SQL. The fix in commit 5d35c15856dbf267fab4dccafd077ee7a6fa6f40 centralizes identifier validation through a shared isSafeSqlIdentifier utility and adds strict allowlisting of the direction value, with regression tests covering the exact reporter PoC payload shape.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Network-accessible /assets endpoint requires only a valid authenticated session (PR:L); read-only SQL injection grants high confidentiality impact with no integrity or availability consequence.
Primary rating from GitHub Advisory.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub Advisory
Shelf is a platform for tracking physical assets. From 1.12 to before 1.20.1, a SQL injection vulnerability in the sortBy query parameter on the /assets route allows any authenticated user (any role) to execute arbitrary SQL and read data from any table in the database, including data belonging to other organizations. This vulnerability is fixed in 1.20.1.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
EUVD-2026-29728
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB