Vulnerabilities in pkg:npm/aws-advanced-nodejs-wrapper
PACKAGEGHSA-8wj8-cfxr-9374 is a HIGH (CVSS 8.0) privilege escalation vulnerability (CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')) affecting AWS Advanced NodeJS Wrapper libraries in the npm ecosystem. The issue involves privilege escalation in aurora postgresql instance. Remediation is available by upgrading affected packages to version 2.0.1.
pkg:npm/aws-advanced-nodejs-wrapper
Vulnerability advisories affecting package pkg:npm/aws-advanced-nodejs-wrapper. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-8wj8-cfxr-9374 | - | HIGH | AWS Advanced NodeJS Wrapper: Privilege Escalation in Aurora PostgreSQL instance |
GHSA-8wj8-cfxr-9374 at a Glance
Security Impact
CVSS: 8.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H).
How to Fix GHSA-8wj8-cfxr-9374
To remediate this vulnerability, upgrade all affected AWS Advanced NodeJS Wrapper dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install aws-advanced-nodejs-wrapper@2.0.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls aws-advanced-nodejs-wrapper
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-8wj8-cfxr-9374, inspect your project dependencies using npm:
npm ls aws-advanced-nodejs-wrapper
Analyze the terminal output to locate any version of AWS Advanced NodeJS Wrapper in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.1), your application is affected.
Note: The npm ls aws-advanced-nodejs-wrapper command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection'), where the product uses external input with reflection to select which classes or code to use, but it does not sufficiently prevent the input from selecting improper classes or code. In AWS Advanced NodeJS Wrapper, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-8wj8-cfxr-9374 Affected AWS Advanced NodeJS Wrapper Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
aws-advanced-nodejs-wrapper
|
npm |
< 2.0.1
|
2.0.1
|
References
Frequently Asked Questions
What is GHSA-8wj8-cfxr-9374?
Which AWS Advanced NodeJS Wrapper versions are affected?
What version fixes GHSA-8wj8-cfxr-9374?
Is aws-advanced-nodejs-wrapper affected?
What is the CVSS score of GHSA-8wj8-cfxr-9374?
What CWE is associated with GHSA-8wj8-cfxr-9374?
How can I check npm dependencies for GHSA-8wj8-cfxr-9374?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8wj8-cfxr-9374",
"modified" : "2025-11-13T22:22:37Z",
"published" : "2025-11-13T22:22:37Z",
"aliases" : [ ],
"summary" : "AWS Advanced NodeJS Wrapper: Privilege Escalation in Aurora PostgreSQL instance",
"details" : "### Description of Vulnerability: \nAn issue in AWS Wrappers for Amazon Aurora PostgreSQL may allow for privilege escalation to rds_superuser role. A low privilege authenticated user can create a crafted function that could be executed with permissions of other Amazon Relational Database Service (RDS) users.\n\nAWS recommends that customers upgrade to the following version: AWS NodeJS Wrapper to v2.0.1.\n\n\n### Source of Vulnerability Report:\nAllistair Ishmael Hakim [allistair.hakim@gmail.com](mailto:allistair.hakim@gmail.com)\n\n\n### Affected products & versions: \nAWS NodeJS Wrapper < 2.0.1.\n\n\n### Platforms: \nMacOS/Windows/Linux",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "aws-advanced-nodejs-wrapper"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.0.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/aws/aws-advanced-nodejs-wrapper/security/advisories/GHSA-8wj8-cfxr-9374"
}, {
"type" : "WEB",
"url" : "https://github.com/aws/aws-advanced-nodejs-wrapper/pull/574"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/aws/aws-advanced-nodejs-wrapper"
}, {
"type" : "WEB",
"url" : "https://github.com/aws/aws-advanced-nodejs-wrapper/releases/tag/2.0.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-470" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-11-13T22:22:37Z",
"nvd_published_at" : null
}
}