Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CVE-2021-23346 (Medium) detected in html-parse-stringify2-2.0.1.tgz #883

Closed
mend-bolt-for-github bot opened this issue Mar 20, 2021 · 2 comments
Closed
Labels
Mend: dependency security vulnerability Security vulnerability detected by WhiteSource

Comments

@mend-bolt-for-github
Copy link
Contributor

CVE-2021-23346 - Medium Severity Vulnerability

Vulnerable Library - html-parse-stringify2-2.0.1.tgz

Parses well-formed HTML (meaning all tags closed) into an AST and back. quickly.

Library home page: https://registry.npmjs.org/html-parse-stringify2/-/html-parse-stringify2-2.0.1.tgz

Path to dependency file: gaen-mobile/node_modules/html-parse-stringify2/package.json

Path to vulnerable library: gaen-mobile/node_modules/html-parse-stringify2/package.json

Dependency Hierarchy:

  • react-i18next-11.4.0.tgz (Root Library)
    • html-parse-stringify2-2.0.1.tgz (Vulnerable Library)

Found in base branch: develop

Vulnerability Details

This affects the package html-parse-stringify before 2.0.1; all versions of package html-parse-stringify2. Sending certain input could cause one of the regular expressions that is used for parsing to backtrack, freezing the process.

Publish Date: 2021-03-04

URL: CVE-2021-23346

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: None
    • Availability Impact: Low

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-545q-3fg6-48m7

Release Date: 2021-03-04

Fix Resolution: html-parse-stringify 2.0.1


Step up your Open Source Security Game with WhiteSource here

@mend-bolt-for-github mend-bolt-for-github bot added the Mend: dependency security vulnerability Security vulnerability detected by WhiteSource label Mar 20, 2021
@si1k
Copy link
Contributor

si1k commented Mar 22, 2021

PR in progress at i18next/react-i18next#1275

Monitoring issue for when PR is merged.

@si1k
Copy link
Contributor

si1k commented Apr 19, 2021

i18next/react-i18next#1275
i18next/react-i18next#1283

Issued addressed in dependency and pulled into vulnerable package repo. React-i18next team confirmed issue is not exploitable at runtime. Gaen-mobile flagged package for update.

Closing issue as confirmed no risk.

@si1k si1k closed this as completed Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mend: dependency security vulnerability Security vulnerability detected by WhiteSource
Projects
None yet
Development

No branches or pull requests

1 participant