CVE-2021-27292 (High) detected in ua-parser-js-0.7.23.tgz, ua-parser-js-0.7.19.tgz - autoclosed #102
Labels
Mend: dependency security vulnerability
Security vulnerability detected by WhiteSource
CVE-2021-27292 - High Severity Vulnerability
Vulnerable Libraries - ua-parser-js-0.7.23.tgz, ua-parser-js-0.7.19.tgz
ua-parser-js-0.7.23.tgz
Lightweight JavaScript-based user-agent string parser
Library home page: https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.23.tgz
Path to dependency file: /npm_and_yarn/spec/fixtures/projects/npm7/peer_dependency_multiple/package.json
Path to vulnerable library: /npm_and_yarn/spec/fixtures/projects/npm7/peer_dependency_multiple/node_modules/ua-parser-js/package.json,/npm_and_yarn/spec/fixtures/projects/npm7/peer_dependency/node_modules/ua-parser-js/package.json,/npm_and_yarn/spec/fixtures/projects/npm7/peer_dependency_switch/node_modules/ua-parser-js/package.json
Dependency Hierarchy:
ua-parser-js-0.7.19.tgz
Lightweight JavaScript-based user-agent string parser
Library home page: https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.19.tgz
Path to dependency file: /npm_and_yarn/spec/fixtures/projects/npm7/peer_dependency_changed/package.json
Path to vulnerable library: /npm_and_yarn/spec/fixtures/projects/npm7/peer_dependency_changed/node_modules/ua-parser-js/package.json,/npm_and_yarn/spec/fixtures/projects/npm6/peer_dependency_multiple/node_modules/ua-parser-js/package.json,/npm_and_yarn/spec/fixtures/projects/yarn/peer_dependency/node_modules/ua-parser-js,/npm_and_yarn/spec/fixtures/projects/npm7/github_dependency_commit_ref/node_modules/ua-parser-js/package.json,/npm_and_yarn/spec/fixtures/projects/npm6/peer_dependency_switch/node_modules/ua-parser-js/package.json,/npm_and_yarn/spec/fixtures/projects/npm6_and_yarn/github_dependency_commit_ref/node_modules/ua-parser-js/package.json,/npm_and_yarn/spec/fixtures/projects/npm6/peer_dependency_shrinkwrap/node_modules/ua-parser-js/package.json,/npm_and_yarn/spec/fixtures/projects/npm6/peer_dependency_changed/node_modules/ua-parser-js/package.json,/npm_and_yarn/spec/fixtures/projects/npm6/peer_dependency/node_modules/ua-parser-js/package.json,/npm_and_yarn/spec/fixtures/projects/yarn/peer_dependency_multiple/node_modules/ua-parser-js,/npm_and_yarn/spec/fixtures/projects/yarn/peer_dependency_switch/node_modules/ua-parser-js,/npm_and_yarn/spec/fixtures/projects/yarn/peer_dependency_nested/packages/package1/node_modules/ua-parser-js
Dependency Hierarchy:
Found in HEAD commit: ba8cd9078c8ce0cb202767d627706711237abf71
Found in base branch: main
Vulnerability Details
ua-parser-js >= 0.7.14, fixed in 0.7.24, uses a regular expression which is vulnerable to denial of service. If an attacker sends a malicious User-Agent header, ua-parser-js will get stuck processing it for an extended period of time.
Publish Date: 2021-03-17
URL: CVE-2021-27292
CVSS 3 Score Details (7.5)
Base Score Metrics:
Suggested Fix
Type: Upgrade version
Release Date: 2021-03-17
Fix Resolution (ua-parser-js): 0.7.25
Direct dependency fix Resolution (react): 0.14.10
Fix Resolution (ua-parser-js): 0.7.25
Direct dependency fix Resolution (react-apollo): 2.1.9
⛑️ Automatic Remediation will be attempted for this issue.
The text was updated successfully, but these errors were encountered: