RE DoS + Prototype pollution vulnerability
See original GitHub issueIssue details
NPM flagged a vulnerability regarding this package due to a Regular Expression Denial of Service found in its debug
dependency as follows:
Low β Regular Expression Denial of Service β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Package β debug β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Patched in β >= 2.6.9 < 3.0.0 || >= 3.1.0 β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Dependency of β browser-sync [dev] β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Path β browser-sync > localtunnel > debug β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β More info β https://nodesecurity.io/advisories/534
Thereβs also an apparent Prototype Pollution in its lodash
dependency as follows:
Low β Prototype Pollution β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Package β lodash β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Patched in β >=4.17.5 β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Dependency of β browser-sync β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Path β browser-sync > easy-extender > lodash β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β More info β https://nodesecurity.io/advisories/577
Steps to reproduce/test case
# cd to a project that uses browser-sync as a dev dependency
npm audit #or nsp check
Please specify which version of Browsersync, node and npm youβre running
- Browsersync [2.24.6]
- Node [10.7.0]
- Npm [6.2.0]
Affected platforms
- linux
- windows
- OS X
- freebsd
- solaris
- other (please specify which)
Browsersync use-case
- API
- Gulp
- Grunt
- CLI
If CLI, please paste the entire command below
{cli command here}
for all other use-cases, (gulp, grunt etc), please show us exactly how youβre using Browsersync
if (app.get('browser') || process.env.BROWSER) {
require('browser-sync')({
proxy: `localhost:${port}`,
files: ['public/**/*.{js,css}']
});
}
Issue Analytics
- State:
- Created 5 years ago
- Reactions:11
- Comments:5 (2 by maintainers)
Top Results From Across the Web
What is prototype pollution? | Tutorial & examples - Snyk Learn
Prototype pollution is an injection attack that targets JavaScript runtimes. With prototype pollution, an attacker might control the default values of anΒ ...
Read more >What Is Prototype Pollution? | Risks & Mitigation - Imperva
This vulnerability is called prototype pollution because it allows threat actors to inject values that overwrite or pollute the βprototypeβ of a base...
Read more >The Complete Guide to Prototype Pollution Vulnerabilities
In this article, we're going to take a deep dive into what Prototype Pollution vulnerabilities are, and how they can be mitigated.
Read more >Exploiting Prototype Pollution. Introduction: | by Zub3r | Medium
Prototype pollution is a bug that is not yet as well documented as some of the major ones known to the public such...
Read more >Prototype pollution: The dangerous and underrated ...
The security hole was a prototype pollution bug β a type of vulnerability that allows attackers to exploit the rules of the JavaScriptΒ ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
FYI, localtunnel updated their dependencies with https://github.com/localtunnel/localtunnel/pull/256 and released to v1.9.1 to fix their end.
@shakyShane Thanks for fixing this! I see the change is tagged with a 2.25.0 alpha release. When will the final version be released?