Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dev dependencies, fix most of vulnerabilities #7133

Merged
merged 7 commits into from May 18, 2020

Conversation

johnd0e
Copy link
Collaborator

@johnd0e johnd0e commented May 8, 2020

    "eslint": "^6.8.0",
    "git-rev-sync": "^2.0.0",
    "rollup": "^0.59.4",
    "rollup-plugin-git-version": "^0.3.1",
    "ssri": "^8.0.0",
    "uglify-js": "^3.9.2"

Keep rollup < 0.60.0 for compatibility with IE 8 (see #6647)

@johnd0e johnd0e changed the title Update dev dependencies Update dev dependencies, fix most of vulnerabilities May 8, 2020
@johnd0e
Copy link
Collaborator Author

johnd0e commented May 8, 2020

Fix #6633.

After all changes npm audit reports only 4 vulnerabilities (instead of former 200):

=== npm audit security report ===                        
                                                                                
                                                                                
                                 Manual Review                                  
             Some vulnerabilities require your attention to resolve             
                                                                                
          Visit https://go.npm.me/audit-guide for additional guidance           
                                                                                
                                                                                
  High            Cross-Site Scripting                                          
                                                                                
  Package         handlebars                                                    
                                                                                
  Patched in      >=4.0.0                                                       
                                                                                
  Dependency of   leafdoc [dev]                                                 
                                                                                
  Path            leafdoc > handlebars                                          
                                                                                
  More info       https://npmjs.com/advisories/61                               
                                                                                
                                                                                
  Critical        Prototype Pollution                                           
                                                                                
  Package         handlebars                                                    
                                                                                
  Patched in      >=4.0.14 <4.1.0 || >=4.1.2                                    
                                                                                
  Dependency of   leafdoc [dev]                                                 
                                                                                
  Path            leafdoc > handlebars                                          
                                                                                
  More info       https://npmjs.com/advisories/755                              
                                                                                
                                                                                
  Moderate        Regular Expression Denial of Service                          
                                                                                
  Package         marked                                                        
                                                                                
  Patched in      >=0.6.2                                                       
                                                                                
  Dependency of   leafdoc [dev]                                                 
                                                                                
  Path            leafdoc > marked                                              
                                                                                
  More info       https://npmjs.com/advisories/812                              
                                                                                
                                                                                
  Low             Prototype Pollution                                           
                                                                                
  Package         minimist                                                      
                                                                                
  Patched in      >=0.2.1 <1.0.0 || >=1.2.3                                     
                                                                                
  Dependency of   leafdoc [dev]                                                 
                                                                                
  Path            leafdoc > handlebars > optimist > minimist                    
                                                                                
  More info       https://npmjs.com/advisories/1179                             
                                                                                
found 4 vulnerabilities (1 low, 1 moderate, 1 high, 1 critical) in 3064 scanned packages
  4 vulnerabilities require manual review. See the full report for details.

All of them come from Leafdoc's devDependencies, and are already addressed in still unpublished version.

@johnd0e johnd0e marked this pull request as ready for review May 8, 2020 15:34
@johnd0e johnd0e mentioned this pull request May 8, 2020
@mondeja
Copy link
Contributor

mondeja commented May 8, 2020

The marked and handlebar packages are not dependencies of current leafdoc, and there is a pull request to upgrade minimist that will remove this security vulnerability.

@mourner mourner merged commit 9b0d7c2 into Leaflet:master May 18, 2020
@johnd0e johnd0e deleted the update-deps branch May 19, 2020 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants