Coder Social home page Coder Social logo

Fix CVE-2020-7598 about tslint HOT 14 CLOSED

WPMGPRoSToTeMa avatar WPMGPRoSToTeMa commented on June 29, 2024 1
Fix CVE-2020-7598

from tslint.

Comments (14)

Eyas avatar Eyas commented on June 29, 2024 2

Note that mkdirp 1.0.0 requires node >= 10 but tslint still claims to support node >= 4.8.0

The right solution is probably to update mkdirp to 0.5.3 first and make a minor version bump.

You might consider a major version cump to update to mkdirp 1.x, but you'd need to move engine to node >= 10 (which is probably reasonable).

from tslint.

praneetloke avatar praneetloke commented on June 29, 2024 1

It looks like tslint depends on mkdirp, which has minimist as a direct dependency. Someone opened a PR to upgrade the minimist version here: isaacs/node-mkdirp#8.

EDIT: It actually looks like the latest version (1.0.0+) of mkdirp no longer has a direct dependency on minimist. It was removed in this commit. tslint uses [email protected], which does have a very old version of minimist.

from tslint.

hansnull avatar hansnull commented on June 29, 2024 1

FYI:

                       === npm audit security report ===                        
                                                                                                                                         
                                 Manual Review                                  
             Some vulnerabilities require your attention to resolve             
                                                                                
          Visit https://go.npm.me/audit-guide for additional guidance           
                                                                                
                                                                                
  Moderate        Prototype Pollution                                           
                                                                                
  Package         minimist                                                      
                                                                                
  Patched in      >=1.2.3                                                       
                                                                                
  Dependency of   tslint [dev]                                                  
                                                                                
  Path            tslint > mkdirp > minimist                                    
                                                                                
  More info       https://npmjs.com/advisories/1179       

from tslint.

WPMGPRoSToTeMa avatar WPMGPRoSToTeMa commented on June 29, 2024 1

@adidahiya are you going to release a new version with the fix for this?

from tslint.

JoshuaKGoldberg avatar JoshuaKGoldberg commented on June 29, 2024

Quick reference: GHSA-7fhm-mqm4-2wp7

TSLint is also affected

Is it? There aren't any security vulnerabilities posted to TSLint right now. https://github.com/palantir/tslint/security/advisories

If there are, accepting PRs to fix for them. Until then, I don't believe there's any action that needs to be taken? (we don't depend on acorn, for example)

from tslint.

WPMGPRoSToTeMa avatar WPMGPRoSToTeMa commented on June 29, 2024

@JoshuaKGoldberg that is weird. TSLint has minimist dependency which is affected by the vulnerability.

from tslint.

JoshuaKGoldberg avatar JoshuaKGoldberg commented on June 29, 2024

It's possible that only devDependency versions are affected. Or, GitHub is still processing the alert, and we haven't gotten it yet 😄

from tslint.

JoshuaKGoldberg avatar JoshuaKGoldberg commented on June 29, 2024

Excellent, thanks for the additional info folks! Accepting PRs to bump to a version of minimist mkdirp that doesn't have the dependency on (an old version of) minimist.

from tslint.

JoshuaKGoldberg avatar JoshuaKGoldberg commented on June 29, 2024

tslint still claims to support node >= 4.8.0

That is... quite far back, and probably no longer true in practice 😬. Amusing.

Per https://www.npmjs.com/package/mkdirp#platform-support:

This module works on node v8, but only v10 and above are officially supported, as Node v8 reached its LTS end of life 2020-01-01, which is in the past, as of this writing.

We can take a dependency on the unofficial v8 support decision, for those same reasons.

from tslint.

Eyas avatar Eyas commented on June 29, 2024

I just opened a PR before seeing this. I can switch to 1.x and increase node version if you think that's preferable.

from tslint.

JoshuaKGoldberg avatar JoshuaKGoldberg commented on June 29, 2024

0.5.3 works too! So long as minimist is updated.

from tslint.

dscalzi avatar dscalzi commented on June 29, 2024

If you delete your lockfile and minimist + mkdirp in node_modules it will automatically fix this.

from tslint.

adidahiya avatar adidahiya commented on June 29, 2024

just released 6.1.1

from tslint.

JoshuaKGoldberg avatar JoshuaKGoldberg commented on June 29, 2024

🤖 Beep boop! 👉 TSLint is deprecated 👈 and you should switch to typescript-eslint! 🤖

🔒 This issue is being locked to prevent further unnecessary discussions. Thank you! 👋

from tslint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.