question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Vulnearability: content-type-parser@1.0.2

See original GitHub issue

The react-scripts@1.1.0 introduces a security issue, as properly described by Snky.io.

This is because this versions added (or updated) the dependency content-type-parser@1.0.2, which leads to a security issue of Regular Expression Denial of Service (ReDoS).

All the information can be found on the links described above.

But, just in case, here is the remediation copied from snyk.io page:

Remediation

There is no fix for content-type-parser. The package was renamed from content-type-parser to whatwg-mimetype, which fixes the issue in version 2.0.0.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
gaearoncommented, Jan 29, 2018

I don’t understand how this vulnerability is relevant to what we do.

This package is only used for development (in tests), not for production. How can somebody possibly DDoS your development environment?

0reactions
enikolascommented, Jan 29, 2018

Exactly @wtgtybhertgeghgtwtg, I’m still pretty new to the react ecosystem. And the bot snyk.io warning freaked me out.

At least you guys are aware and in next releases, maybe on 2.0.0, i don’t know, it will be fixed.

I shall learn from once for all to setup the webpack myself. hehehe

Read more comments on GitHub >

github_iconTop Results From Across the Web

content-type-parser vulnerabilities - Snyk
Learn more about known vulnerabilities in the content-type-parser package. Parse the value of the Content-Type header. ... latest version. 1.0.2 ...
Read more >
WS-2017-3757 (Medium) detected in content-type-parser-1.0 ...
all versions prior to 2.0.0 of content-type-parser npm package are vulnerable to ReDoS via the user agent parser. the vulnerability was fixed by...
Read more >
Fixed in OpenSSL 1.0.2
In the OpenSSL 1.0.2 version the public key is not parsed during initial parsing of the certificate which makes it slightly harder to...
Read more >
content-type-parser - npm
Parse the value of the Content-Type header. Latest version: 1.0.2, last published: 5 years ago. Start using content-type-parser in your ...
Read more >
body-parser | Yarn - Package Manager
0 vulnerabilities. Node.js body parsing middleware ... Parse incoming request bodies in a middleware before your handlers, available under the req.body ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found