zachfitz / Ionic-Material

Material Design style and animations for Ionic
http://ionicmaterial.com
Other
2.9k stars 904 forks source link

Fix for 7 vulnerable dependency paths #200

Closed SangramChavan closed 4 years ago

SangramChavan commented 8 years ago

Regular Expression Denial of Service high severity

Vulnerable module: negotiator
Introduced through: gulp-connect@2.3.1

Detailed paths and remediation

Introduced through: ionic-material@sangramchavan/ionic-material#HEAD › gulp-connect@2.3.1 › connect@2.30.2 › serve-index@1.7.3 › accepts@1.2.13 › negotiator@0.5.3 Remediation: No direct dependency upgrade can address this issue. If possible, manually upgrade to connect@3.0.0. We'll notify you when an easier upgrade or a patch is available.
Introduced through: ionic-material@sangramchavan/ionic-material#HEAD › gulp-connect@2.3.1 › connect@2.30.2 › compression@1.5.2 › accepts@1.2.13 › negotiator@0.5.3 Remediation: No direct dependency upgrade can address this issue. If possible, manually upgrade to connect@3.0.0. We'll notify you when an easier upgrade or a patch is available.

Overview

negotiator is an HTTP content negotiator for Node.js. Versions prior to 0.6.1 are vulnerable to Regular expression Denial of Service (ReDoS) attack when parsing "Accept-Language" http header.

An attacker can provide a long value in the Accept-Language header, which nearly matches the pattern being matched. This will cause the regular expression matching to take a long time, all the while occupying the thread and preventing it from processing other requests. By repeatedly sending multiple such requests, the attacker can make the server unavailable (a Denial of Service attack).

Regular Expression Denial of Service low severity

Vulnerable module: uglify-js
Introduced through: gulp-uglify@0.2.1

Detailed paths and remediation

Introduced through: ionic-material@sangramchavan/ionic-material#HEAD › gulp-uglify@0.2.1 › uglify-js@2.4.24 Remediation: Upgrade to gulp-uglify@1.5.1.

Overview

The parse() function in the uglify-js package prior to version 2.6.0 is vulnerable to regular expression denial of service (ReDoS) attacks when long inputs of certain patters are processed.

SangramChavan commented 8 years ago

fix: package.json & .snyk to reduce vulnerabilities