SebastianDarie / reddit-clone

https://reddit-clone.tech
1 stars 0 forks source link

CVE-2023-0842 (Medium) detected in xml2js-0.4.19.tgz, xml2js-0.4.23.tgz #88

Open mend-bolt-for-github[bot] opened 1 year ago

mend-bolt-for-github[bot] commented 1 year ago

CVE-2023-0842 - Medium Severity Vulnerability

Vulnerable Libraries - xml2js-0.4.19.tgz, xml2js-0.4.23.tgz

xml2js-0.4.19.tgz

Simple XML to JavaScript object converter.

Library home page: https://registry.npmjs.org/xml2js/-/xml2js-0.4.19.tgz

Path to dependency file: /server/package.json

Path to vulnerable library: /server/.yarn/cache/xml2js-npm-0.4.19-104b7b16eb-ca8b2fee43.zip

Dependency Hierarchy: - aws-sdk-2.882.0.tgz (Root Library) - :x: **xml2js-0.4.19.tgz** (Vulnerable Library)

xml2js-0.4.23.tgz

Simple XML to JavaScript object converter.

Library home page: https://registry.npmjs.org/xml2js/-/xml2js-0.4.23.tgz

Path to dependency file: /server/package.json

Path to vulnerable library: /server/.yarn/cache/xml2js-npm-0.4.23-93a8b2e10b-ca0cf2dfbf.zip

Dependency Hierarchy: - typeorm-0.2.32.tgz (Root Library) - :x: **xml2js-0.4.23.tgz** (Vulnerable Library)

Found in HEAD commit: f0e57d7bd93c43efa485ecd5be4d97e3d3b5a5c3

Found in base branch: main

Vulnerability Details

xml2js version 0.4.23 allows an external attacker to edit or add new properties to an object. This is possible because the application does not properly validate incoming JSON keys, thus allowing the __proto__ property to be edited.

Publish Date: 2023-04-05

URL: CVE-2023-0842

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://www.cve.org/CVERecord?id=CVE-2023-0842

Release Date: 2023-04-05

Fix Resolution (xml2js): 0.5.0

Direct dependency fix Resolution (aws-sdk): 2.1354.0

Fix Resolution (xml2js): 0.5.0

Direct dependency fix Resolution (typeorm): 0.3.14


Step up your Open Source Security Game with Mend here