Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend HTTP request with malicious sort parameter
-
ExploitInject SQL code into User.getAll function
-
ExecutionExecute arbitrary SQL queries
-
ImpactAccess sensitive data or modify database
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | No special conditions — remote unauthenticated exploitation against node-api-postgres versions up to 2.5 with unvalidated sort parameter in User.getAll endpoint. |
| Impact | This vulnerability presents a moderate-to-high real-world risk. The CVSS 3.1 score of 7.3 reflects network-accessible attack vector (AV:N) with low complexity (AC:L) and no required privileges (PR:N) or user interaction (UI:N). The impact is distributed across confidentiality, integrity, and availability (all rated Low). Key risk factors include: 1) Public POC availability significantly increases exploitation likelihood, 2) No authentication required for exploitation, 3) Remote exploitation capability, 4) Vendor non-responsiveness suggests no patch forthcoming. However, this is not listed in CISA's KEV catalog, indicating no confirmed active exploitation in the wild. The combination of public exploit code and ease of exploitation makes this a priority for organizations using this library. |
| Exploit ScenarioDerived | An attacker can remotely exploit this vulnerability by sending a specially crafted HTTP request to any endpoint that calls User.getAll with user-controlled sort parameters. For example, a request to '/api/users?sort=name; DROP TABLE users;--' could potentially execute arbitrary SQL commands. Since no authentication is required (PR:N) and the attack complexity is low (AC:L), even novice attackers can leverage the publicly available proof-of-concept from HackMD to compromise affected systems, potentially leading to data theft, manipulation, or service disruption. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 15, 2026
SQL injection in the User.getAll function of node-api-postgres up to version 2.5 allows remote attackers to manipulate the sort parameter and execute arbitrary SQL commands. Public exploit code exists for this vulnerability, and no patch is currently available from the vendor despite early disclosure notification. Affected deployments using PostgreSQL with the vulnerable Node.js API library face risks of unauthorized data access, modification, and potential service disruption.
Earlier versions of this analysis (1)
A SQL injection vulnerability exists in the User.getAll function of JawherKl's node-api-postgres library (versions up to 2.5), allowing remote attackers to execute arbitrary SQL commands through manipulation of the sort parameter. A proof-of-concept exploit is publicly available on HackMD, and the vendor has not responded to disclosure attempts despite early notification.
RemediationAI
Given the vendor's non-responsiveness to the vulnerability disclosure, no official patch is available. Recommended mitigations include: 1) Immediately implement input validation and parameterized queries for the sort parameter in User.getAll function, 2) Consider forking the library and applying security fixes if continued use is necessary, 3) Migrate to an alternative, actively maintained PostgreSQL library for Node.js, 4) Implement Web Application Firewall (WAF) rules to filter potential SQL injection attempts as a temporary measure. Review the exploit details at https://hackmd.io/@YzU_KiOzT86cEbFQdBceVg/Bk56LQQYbe to understand attack patterns for detection.
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
The node-api-postgres library is a Node.js API framework for PostgreSQL databases. The vulnerability stems from improper input sanitization in the User.getAll function located in models/user.js, where the 'sort' parameter is directly concatenated into SQL queries without proper escaping or parameterization. This is a classic SQL injection vulnerability (CWE-89), which occurs when user-supplied input is incorporated into SQL queries without adequate validation. Based on the CPE identifier (cpe:2.3:a:jawherkl:node-api-postgres:*:*:*:*:*:*:*:*), all versions up to and including 2.5 are affected.
Know when PostgreSQL gets its next vulnerability
- 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
5DescriptionCVE.org
A vulnerability was detected in JawherKl node-api-postgres up to 2.5. This impacts the function User.getAll of the file models/user.js. The manipulation of the argument sort results in sql injection. The attack can be executed remotely. The exploit is now public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
Executive ViewAI
A remote SQL injection vulnerability affecting node-api-postgres versions up to 2.5 has been publicly disclosed with an available exploit, creating immediate risk for any applications using this library. Organizations running affected versions face potential unauthorized data access, modification, or exfiltration through the User.getAll function, and the vendor has shown no responsiveness to remediation efforts.
Implement Web Application Firewall (WAF) rules to block SQL injection patterns in the sort parameter; restrict database user privileges to read-only where possible; disable the User.getAll endpoint if not critical to operations; apply input validation and whitelist allowed sort parameters to alphanumeric characters only; monitor database query logs for anomalous SQL commands; consider network segmentation to limit database access from affected applications; implement rate limiting on the vulnerable endpoint.
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.
More in PostgreSQL
View allPostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() improperl
An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl
Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9, and 9.0.x before 9.0.13 allows re
Unauthenticated arbitrary file write in Splunk Enterprise (below 10.2.4 and 10.0.7) and Splunk Cloud Platform (below 10.
Unauthenticated SQL injection in Sangoma Switchvox SMB Edition 8.3 (build 104997) lets remote attackers execute arbitrar
PostgreSQL versions before 9.2.22, 9.3.18, 9.4.13, 9.5.8 and 9.6.4 are vulnerable to incorrect authentication flaw allow
The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate t
A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitra
In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_serve
Unauthenticated SQL injection in Vendure Shop API allows remote attackers to execute arbitrary SQL commands against the
Parse Server is an open source http web server backend. Rated critical severity (CVSS 10.0), this vulnerability is remot
Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al
EUVD-2026-12251
NVD
CVE.org
EPSS
VulDB
GitHub PoC
Exploit-DB