Skip to main content

PostgreSQL EUVDEUVD-2026-12251

| CVE-2026-4190 MEDIUM
SQL Injection (CWE-89)
2026-03-15 VulDB
5.5
CVSS 4.0 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send HTTP request with malicious sort parameter
  2. Exploit
    Inject SQL code into User.getAll function
  3. Execution
    Execute arbitrary SQL queries
  4. Impact
    Access 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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)
v1 Mar 15, 2026 - 20:00 CVSS 7.3

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

node-api-postgres 2.1
node-api-postgres 2.2
node-api-postgres 2.3
node-api-postgres 2.5
node-api-postgres 2.4
node-api-postgres 2.0

Affected Packages

euvd node_api_postgres no fix

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

NVD PRIMARY 5.5 MEDIUM
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

5
CVSS changed
Apr 29, 2026 - 01:11 NVD
6.9 (MEDIUM) 5.5 (MEDIUM)
Severity Changed
Apr 22, 2026 - 21:37 NVD
HIGH MEDIUM
CVSS changed
Apr 22, 2026 - 21:37 NVD
7.3 (HIGH) 6.9 (MEDIUM)
PoC Detected
Mar 16, 2026 - 14:53 vuln.today
Public exploit code
CVE Published
Mar 15, 2026 - 19:32 nvd
HIGH 7.3

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 92% exploitable
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

48
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

CVE-2025-1094 HIGH POC
8.1 Feb 13

PostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() improperl

CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2013-1899 MEDIUM POC
6.5 Apr 04

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

CVE-2026-20253 CRITICAL POC
9.8 Jun 10

Unauthenticated arbitrary file write in Splunk Enterprise (below 10.2.4 and 10.0.7) and Splunk Cloud Platform (below 10.

CVE-2026-9586 CRITICAL POC
9.3 Jul 17

Unauthenticated SQL injection in Sangoma Switchvox SMB Edition 8.3 (build 104997) lets remote attackers execute arbitrar

CVE-2017-7546 CRITICAL
9.8 Aug 16

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

CVE-2015-1352 MEDIUM POC
5.0 Mar 30

The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate t

CVE-2024-10553 CRITICAL POC
9.8 Mar 20

A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitra

CVE-2019-9193 HIGH POC
7.2 Apr 01

In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_serve

CVE-2026-40887 CRITICAL POC
9.1 Apr 14

Unauthenticated SQL injection in Vendure Shop API allows remote attackers to execute arbitrary SQL commands against the

CVE-2022-24760 CRITICAL POC
10.0 Mar 12

Parse Server is an open source http web server backend. Rated critical severity (CVSS 10.0), this vulnerability is remot

CVE-2025-56157 CRITICAL POC
9.8 Dec 18

Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy