turkdevops / sourcegraph

Universal code search (self-hosted)
https://sourcegraph.com
Other
1 stars 0 forks source link

CVE-2019-16772 (Medium) detected in serialize-to-js-1.2.1.tgz - autoclosed #184

Closed mend-bolt-for-github[bot] closed 3 years ago

mend-bolt-for-github[bot] commented 3 years ago

CVE-2019-16772 - Medium Severity Vulnerability

Vulnerable Library - serialize-to-js-1.2.1.tgz

serialize objects to javascript

Library home page: https://registry.npmjs.org/serialize-to-js/-/serialize-to-js-1.2.1.tgz

Path to dependency file: sourcegraph/cmd/management-console/web/package.json

Path to vulnerable library: sourcegraph/cmd/management-console/web/node_modules/serialize-to-js

Dependency Hierarchy: - parcel-bundler-1.11.0.tgz (Root Library) - :x: **serialize-to-js-1.2.1.tgz** (Vulnerable Library)

Found in HEAD commit: f8d44c382168ebea3a3dae2b5347a7ffe36f343a

Found in base branch: dev/seed-tool

Vulnerability Details

The serialize-to-js NPM package before version 3.0.1 is vulnerable to Cross-site Scripting (XSS). It does not properly mitigate against unsafe characters in serialized regular expressions. This vulnerability is not affected on Node.js environment since Node.js's implementation of RegExp.prototype.toString() backslash-escapes all forward slashes in regular expressions. If serialized data of regular expression objects are used in an environment other than Node.js, it is affected by this vulnerability.

Publish Date: 2019-12-07

URL: CVE-2019-16772

CVSS 3 Score Details (6.1)

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-16772

Release Date: 2019-12-07

Fix Resolution: v3.0.1


Step up your Open Source Security Game with WhiteSource here

mend-bolt-for-github[bot] commented 3 years ago

:heavy_check_mark: This issue was automatically closed by WhiteSource because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the WhiteSource inventory.