Vulnerabilities in pkg:npm/aws-advanced-nodejs-wrapper

PACKAGE
Advisory Summary

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

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/aws-advanced-nodejs-wrapper

1 Known Advisory Record(s)

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

CVE Identifier N/A
GHSA Identifier GHSA-8wj8-cfxr-9374
Severity HIGH
CVSS v3.1 Base Score 8.0
CWE Classification CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')
Affected Product AWS Advanced NodeJS Wrapper
Package Ecosystem npm
Published Date
Last Updated

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

aws-advanced-nodejs-wrapper fixed: 2.0.1
npm install aws-advanced-nodejs-wrapper@2.0.1
Verify Direct and Transitive Dependencies

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

### Description of Vulnerability: An 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. AWS recommends that customers upgrade to the following version: AWS NodeJS Wrapper to v2.0.1. ### Source of Vulnerability Report: Allistair Ishmael Hakim [allistair.hakim@gmail.com](mailto:allistair.hakim@gmail.com) ### Affected products & versions: AWS NodeJS Wrapper < 2.0.1. ### Platforms: MacOS/Windows/Linux

GHSA-8wj8-cfxr-9374 Affected AWS Advanced NodeJS Wrapper Versions

1 component(s)
Fixed Versions:
2.0.1
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?
GHSA-8wj8-cfxr-9374 is a security vulnerability in AWS Advanced NodeJS Wrapper involving Privilege Escalation in Aurora PostgreSQL instance under CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection').
Which AWS Advanced NodeJS Wrapper versions are affected?
Affected versions include releases prior to 2.0.1 across affected packages: aws-advanced-nodejs-wrapper.
What version fixes GHSA-8wj8-cfxr-9374?
Upgrading to 2.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is aws-advanced-nodejs-wrapper affected?
Yes, aws-advanced-nodejs-wrapper is affected in releases prior to 2.0.1. Upgrade your dependency to 2.0.1 or later.
What is the CVSS score of GHSA-8wj8-cfxr-9374?
GHSA-8wj8-cfxr-9374 has a CVSS v3.1 base score of 8.0 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with GHSA-8wj8-cfxr-9374?
GHSA-8wj8-cfxr-9374 is classified under CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') (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.).
How can I check npm dependencies for GHSA-8wj8-cfxr-9374?
Run the dependency tree command: 'npm ls aws-advanced-nodejs-wrapper'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}