vipinsun / blockchain-carbon-accounting

Apache License 2.0
0 stars 0 forks source link

CVE-2023-34104 (High) detected in fast-xml-parser-3.17.4.tgz #222

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

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

CVE-2023-34104 - High Severity Vulnerability

Vulnerable Library - fast-xml-parser-3.17.4.tgz

Validate XML or Parse XML to JS/JSON very fast without C/C++ based libraries

Library home page: https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-3.17.4.tgz

Path to dependency file: /utility-emissions-channel/typescript_app/package.json

Path to vulnerable library: /utility-emissions-channel/typescript_app/node_modules/fast-xml-parser/package.json

Dependency Hierarchy: - serverless-s3-local-0.6.7.tgz (Root Library) - s3rver-3.6.1.tgz - :x: **fast-xml-parser-3.17.4.tgz** (Vulnerable Library)

Found in HEAD commit: d388e16464e00b9ce84df0d247029f534a429b90

Found in base branch: main

Vulnerability Details

fast-xml-parser is an open source, pure javascript xml parser. fast-xml-parser allows special characters in entity names, which are not escaped or sanitized. Since the entity name is used for creating a regex for searching and replacing entities in the XML body, an attacker can abuse it for denial of service (DoS) attacks. By crafting an entity name that results in an intentionally bad performing regex and utilizing it in the entity replacement step of the parser, this can cause the parser to stall for an indefinite amount of time. This problem has been resolved in v4.2.4. Users are advised to upgrade. Users unable to upgrade should avoid using DOCTYPE parsing by setting the `processEntities: false` option.

Publish Date: 2023-06-06

URL: CVE-2023-34104

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/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-6w63-h3fj-q4vw

Release Date: 2023-06-06

Fix Resolution (fast-xml-parser): 4.2.4

Direct dependency fix Resolution (serverless-s3-local): 0.6.8


Step up your Open Source Security Game with Mend here