You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since aws-crt-nodejs is a transitive dependency of aws-sdk and aws-sdk-v3, these vulnerabilities are inherited by all downstream consumers. This is also related to #607.
Regression Issue
Select this option if this issue appears to be a regression.
Expected Behavior
The axios dependency should be pinned to a version that has no known security vulnerabilities (>=1.15.1).
Current Behavior
Running npm audit on a project that depends on aws-crt-nodejs reports:
axios >=1.0.0
Severity: high/moderate
- Axios is Vulnerable to Denial of Service via __proto__ Key in mergeConfig
- Axios has a NO_PROXY Hostname Normalization Bypass that Leads to SSRF
- Axios has Unrestricted Cloud Metadata Exfiltration via Header Injection Chain
Reproduction Steps
git clone https://github.com/awslabs/aws-crt-nodejs.git
cd aws-crt-nodejs
npm install --ignore-scripts
npm audit
Possible Solution
Update the axios version in both dependencies and overrides in package.json from ^1.12.2 to ^1.15.1, which is the first version that resolves all three vulnerabilities.
Additional Information/Context
npm audit confirms no axios vulnerabilities after updating to 1.15.1.
Describe the bug
The current axios dependency (
^1.12.2, resolved to1.12.2) contains three known security vulnerabilities:__proto__key inmergeConfig— affects>=1.0.0 <=1.13.4NO_PROXYhostname normalization bypass leading to SSRF — affects>=1.0.0 <1.15.0>=1.0.0 <1.15.0Since
aws-crt-nodejsis a transitive dependency ofaws-sdkandaws-sdk-v3, these vulnerabilities are inherited by all downstream consumers. This is also related to #607.Regression Issue
Expected Behavior
The
axiosdependency should be pinned to a version that has no known security vulnerabilities (>=1.15.1).Current Behavior
Running
npm auditon a project that depends onaws-crt-nodejsreports:Reproduction Steps
git clone https://github.com/awslabs/aws-crt-nodejs.git cd aws-crt-nodejs npm install --ignore-scripts npm auditPossible Solution
Update the
axiosversion in bothdependenciesandoverridesinpackage.jsonfrom^1.12.2to^1.15.1, which is the first version that resolves all three vulnerabilities.Additional Information/Context
npm auditconfirms no axios vulnerabilities after updating to1.15.1.aws-crt-nodejs version used
1.21.0 (latest release)
nodejs version used
v20.9.0
Operating System and version
Ubuntu 20.04.5 LTS