Soontao / presentations

presentations
https://presentations.netlify.fornever.org
The Unlicense
3 stars 3 forks source link

approuter-16.4.2.tgz: 6 vulnerabilities (highest severity is: 7.5) #364

Open mend-bolt-for-github[bot] opened 4 months ago

mend-bolt-for-github[bot] commented 4 months ago
Vulnerable Library - approuter-16.4.2.tgz

Path to dependency file: /src/node/cap-training/session-6-example/cap-02/gateway/package.json

Path to vulnerable library: /src/node/cap-training/session-6-example/cap-02/gateway/node_modules/ws/package.json

Found in HEAD commit: dc1c6dde6f8dc2d3e77029c32e32bd376dca6f3b

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (approuter version) Remediation Possible**
CVE-2024-45590 High 7.5 body-parser-1.20.0.tgz Transitive N/A*
CVE-2024-39338 High 7.5 axios-1.6.8.tgz Transitive N/A*
CVE-2024-37890 High 7.5 ws-7.4.6.tgz Transitive 16.6.0
CVE-2024-47764 Medium 5.3 detected in multiple dependencies Transitive N/A*
CVE-2024-43800 Medium 5.0 serve-static-1.13.2.tgz Transitive N/A*
CVE-2024-43799 Medium 5.0 send-0.16.2.tgz Transitive N/A*

*For some transitive vulnerabilities, there is no version of direct dependency with a fix. Check the "Details" section below to see if there is a version of transitive dependency where vulnerability is fixed.

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2024-45590 ### Vulnerable Library - body-parser-1.20.0.tgz

Node.js body parsing middleware

Library home page: https://registry.npmjs.org/body-parser/-/body-parser-1.20.0.tgz

Path to dependency file: /src/node/cap-training/session-6-example/cap-02/gateway/package.json

Path to vulnerable library: /src/node/cap-training/session-6-example/cap-02/gateway/node_modules/body-parser/package.json

Dependency Hierarchy: - approuter-16.4.2.tgz (Root Library) - :x: **body-parser-1.20.0.tgz** (Vulnerable Library)

Found in HEAD commit: dc1c6dde6f8dc2d3e77029c32e32bd376dca6f3b

Found in base branch: main

### Vulnerability Details

body-parser is Node.js body parsing middleware. body-parser <1.20.3 is vulnerable to denial of service when url encoding is enabled. A malicious actor using a specially crafted payload could flood the server with a large number of requests, resulting in denial of service. This issue is patched in 1.20.3.

Publish Date: 2024-09-10

URL: CVE-2024-45590

### CVSS 3 Score Details (7.5)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: High

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://github.com/expressjs/body-parser/security/advisories/GHSA-qwcr-r2fm-qrc7

Release Date: 2024-09-10

Fix Resolution: body-parser - 1.20.3

Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)
CVE-2024-39338 ### Vulnerable Library - axios-1.6.8.tgz

Library home page: https://registry.npmjs.org/axios/-/axios-1.6.8.tgz

Path to dependency file: /src/node/cap-training/session-6-example/cap-02/gateway/package.json

Path to vulnerable library: /src/node/cap-training/session-6-example/cap-02/gateway/node_modules/axios/package.json

Dependency Hierarchy: - approuter-16.4.2.tgz (Root Library) - :x: **axios-1.6.8.tgz** (Vulnerable Library)

Found in HEAD commit: dc1c6dde6f8dc2d3e77029c32e32bd376dca6f3b

Found in base branch: main

### Vulnerability Details

axios 1.7.2 allows SSRF via unexpected behavior where requests for path relative URLs get processed as protocol relative URLs.

Publish Date: 2024-08-09

URL: CVE-2024-39338

### CVSS 3 Score Details (7.5)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: High - Integrity Impact: None - Availability Impact: None

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://github.com/advisories/GHSA-8hc4-vh64-cxmj

Release Date: 2024-08-09

Fix Resolution: axios - 1.7.4

Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)
CVE-2024-37890 ### Vulnerable Library - ws-7.4.6.tgz

Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js

Library home page: https://registry.npmjs.org/ws/-/ws-7.4.6.tgz

Path to dependency file: /src/node/cap-training/session-6-example/cap-02/gateway/package.json

Path to vulnerable library: /src/node/cap-training/session-6-example/cap-02/gateway/node_modules/ws/package.json

Dependency Hierarchy: - approuter-16.4.2.tgz (Root Library) - :x: **ws-7.4.6.tgz** (Vulnerable Library)

Found in HEAD commit: dc1c6dde6f8dc2d3e77029c32e32bd376dca6f3b

Found in base branch: main

### Vulnerability Details

ws is an open source WebSocket client and server for Node.js. A request with a number of headers exceeding theserver.maxHeadersCount threshold could be used to crash a ws server. The vulnerability was fixed in ws@8.17.1 (e55e510) and backported to ws@7.5.10 (22c2876), ws@6.2.3 (eeb76d3), and ws@5.2.4 (4abd8f6). In vulnerable versions of ws, the issue can be mitigated in the following ways: 1. Reduce the maximum allowed length of the request headers using the --max-http-header-size=size and/or the maxHeaderSize options so that no more headers than the server.maxHeadersCount limit can be sent. 2. Set server.maxHeadersCount to 0 so that no limit is applied.

Publish Date: 2024-06-17

URL: CVE-2024-37890

### CVSS 3 Score Details (7.5)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: High

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://github.com/websockets/ws/security/advisories/GHSA-3h5v-q93c-6h6q

Release Date: 2024-06-17

Fix Resolution (ws): 7.5.10

Direct dependency fix Resolution (@sap/approuter): 16.6.0

Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)
CVE-2024-47764 ### Vulnerable Libraries - cookie-0.4.0.tgz, cookie-0.2.2.tgz, cookie-0.4.1.tgz

### cookie-0.4.0.tgz

HTTP server cookie parsing and serialization

Library home page: https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz

Path to dependency file: /src/node/cap-training/session-6-example/cap-02/gateway/package.json

Path to vulnerable library: /src/node/cap-training/session-6-example/cap-02/gateway/node_modules/express-session/node_modules/cookie/package.json

Dependency Hierarchy: - approuter-16.4.2.tgz (Root Library) - express-session-1.17.0.tgz - :x: **cookie-0.4.0.tgz** (Vulnerable Library) ### cookie-0.2.2.tgz

cookie parsing and serialization

Library home page: https://registry.npmjs.org/cookie/-/cookie-0.2.2.tgz

Path to dependency file: /src/node/cap-training/session-6-example/cap-02/gateway/package.json

Path to vulnerable library: /src/node/cap-training/session-6-example/cap-02/gateway/node_modules/cookie/package.json

Dependency Hierarchy: - approuter-16.4.2.tgz (Root Library) - :x: **cookie-0.2.2.tgz** (Vulnerable Library) ### cookie-0.4.1.tgz

HTTP server cookie parsing and serialization

Library home page: https://registry.npmjs.org/cookie/-/cookie-0.4.1.tgz

Path to dependency file: /src/node/cap-training/session-6-example/cap-02/gateway/package.json

Path to vulnerable library: /src/node/cap-training/session-6-example/cap-02/gateway/node_modules/cookie-parser/node_modules/cookie/package.json

Dependency Hierarchy: - approuter-16.4.2.tgz (Root Library) - cookie-parser-1.4.6.tgz - :x: **cookie-0.4.1.tgz** (Vulnerable Library)

Found in HEAD commit: dc1c6dde6f8dc2d3e77029c32e32bd376dca6f3b

Found in base branch: main

### Vulnerability Details

cookie is a basic HTTP cookie parser and serializer for HTTP servers. The cookie name could be used to set other fields of the cookie, resulting in an unexpected cookie value. A similar escape can be used for path and domain, which could be abused to alter other fields of the cookie. Upgrade to 0.7.0, which updates the validation for name, path, and domain.

Publish Date: 2024-10-04

URL: CVE-2024-47764

### CVSS 3 Score Details (5.3)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: Low - Availability Impact: None

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://github.com/jshttp/cookie/security/advisories/GHSA-pxg6-pf52-xh8x

Release Date: 2024-10-04

Fix Resolution: cookie - 0.7.0

Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)
CVE-2024-43800 ### Vulnerable Library - serve-static-1.13.2.tgz

Serve static files

Library home page: https://registry.npmjs.org/serve-static/-/serve-static-1.13.2.tgz

Path to dependency file: /src/node/cap-training/session-6-example/cap-02/gateway/package.json

Path to vulnerable library: /src/node/cap-training/session-6-example/cap-02/gateway/node_modules/serve-static/package.json

Dependency Hierarchy: - approuter-16.4.2.tgz (Root Library) - :x: **serve-static-1.13.2.tgz** (Vulnerable Library)

Found in HEAD commit: dc1c6dde6f8dc2d3e77029c32e32bd376dca6f3b

Found in base branch: main

### Vulnerability Details

serve-static serves static files. serve-static passes untrusted user input - even after sanitizing it - to redirect() may execute untrusted code. This issue is patched in serve-static 1.16.0.

Publish Date: 2024-09-10

URL: CVE-2024-43800

### CVSS 3 Score Details (5.0)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: High - Privileges Required: None - User Interaction: Required - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: Low - Integrity Impact: Low - Availability Impact: Low

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://github.com/expressjs/serve-static/security/advisories/GHSA-cm22-4g7w-348p

Release Date: 2024-09-10

Fix Resolution: serve-static - 1.16.0,2.1.0

Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)
CVE-2024-43799 ### Vulnerable Library - send-0.16.2.tgz

Better streaming static file server with Range and conditional-GET support

Library home page: https://registry.npmjs.org/send/-/send-0.16.2.tgz

Path to dependency file: /src/node/cap-training/session-6-example/cap-02/gateway/package.json

Path to vulnerable library: /src/node/cap-training/session-6-example/cap-02/gateway/node_modules/send/package.json

Dependency Hierarchy: - approuter-16.4.2.tgz (Root Library) - :x: **send-0.16.2.tgz** (Vulnerable Library)

Found in HEAD commit: dc1c6dde6f8dc2d3e77029c32e32bd376dca6f3b

Found in base branch: main

### Vulnerability Details

Send is a library for streaming files from the file system as a http response. Send passes untrusted user input to SendStream.redirect() which executes untrusted code. This issue is patched in send 0.19.0.

Publish Date: 2024-09-10

URL: CVE-2024-43799

### CVSS 3 Score Details (5.0)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: High - Privileges Required: None - User Interaction: Required - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: Low - Integrity Impact: Low - Availability Impact: Low

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://github.com/pillarjs/send/security/advisories/GHSA-m6fv-jmcg-4jfg

Release Date: 2024-09-10

Fix Resolution: send - 0.19.0

Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)