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.

[gatsby] 4 vulnerabilities detected by new vscode extension `vscode-vuln-cost`

See original GitHub issue

@wardpeet I got installed new free vscode extension from snyk - it analyzes dependencies which has vulnerabilities in code import statements

https://marketplace.visualstudio.com/items?itemName=snyk-security.vscode-vuln-cost

I’ve opened my gatsby project and it shows 4 vulnerabilities in ‘gatsby’ package.

Description

Describe the issue that you’re seeing.

Steps to reproduce

  1. install https://marketplace.visualstudio.com/items?itemName=snyk-security.vscode-vuln-cost to your vscode.

  2. open any gatsby project file which has import from ‘gatsby’ and wait till vscode extension analyze dependency graph

Expected result

Should be no vulnerabilities in project.

Actual result

extension detected 4 vulnerabilities in ‘gatsby’ project and printed 2 of them in details:

=== gatsby@2.20.14 ===

Indirect:
Medium Prototype Pollution in dot-prop@4.2.0
- https://snyk.io/vuln/SNYK-JS-DOTPROP-543489
Medium Prototype Pollution in yargs-parser@11.1.1
- https://snyk.io/vuln/SNYK-JS-YARGSPARSER-560381

No remediation available.

Environment

ystem: OS: macOS 10.15.4 CPU: (16) x64 Intel® Core™ i9-9980HK CPU @ 2.40GHz Shell: 5.7.1 - /bin/zsh Binaries: Node: 13.12.0 - ~/.nvm/versions/node/v13.12.0/bin/node Yarn: 1.22.4 - /usr/local/bin/yarn npm: 6.14.4 - ~/.nvm/versions/node/v13.12.0/bin/npm Languages: Python: 2.7.16 - /usr/bin/python Browsers: Chrome: 80.0.3987.163 Firefox: 74.0 Safari: 13.1 npmPackages: gatsby: 2.20.14 => 2.20.14 gatsby-plugin-catch-links: 2.2.1 => 2.2.1 gatsby-plugin-manifest: 2.3.3 => 2.3.3 gatsby-plugin-minify-classnames: 0.2.0 => 0.2.0 gatsby-plugin-no-sourcemaps: 2.2.0 => 2.2.0 gatsby-plugin-offline: 3.1.2 => 3.1.2 gatsby-plugin-purgecss: 5.0.0 => 5.0.0 gatsby-plugin-react-helmet: 3.2.1 => 3.2.1 gatsby-plugin-robots-txt: 1.5.0 => 1.5.0 gatsby-plugin-root-import: 2.0.5 => 2.0.5 gatsby-plugin-sitemap: 2.3.1 => 2.3.1 gatsby-plugin-sri: 1.1.0 => 1.1.0 gatsby-plugin-typescript: 2.3.1 => 2.3.1 gatsby-plugin-webpack-bundle-analyser-v2: 1.1.8 => 1.1.8 npmGlobalPackages: gatsby: 2.20.10

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
JustFly1984commented, Jun 29, 2020

@wardpeet I would recommend you to remove ^ prefix in semver for every dependencies and devDependencies, and setup tests, cos some dependencies could have bugs or misconfiguration even in patch versions, which breaks gatsby - for example devcert accident - update from 1.1.0 to 1.1.1 broken gatsby in all of our projects for several days. Every package version update should be reviewed, not just blindly trusting npm to install latest minor/patch version.

PS do not remove ^ for peerDependencies.

1reaction
JustFly1984commented, May 29, 2020

not stale!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vulnerable Visual Studio Code extensions impact over ... - Snyk
But now, Snyk has discovered and disclosed vulnerabilities that pose a real and imminent threat to developers who use these extensions and then ......
Read more >
gatsby-remark-vscode
A syntax highlighting plugin for Gatsby that uses VS Code's extensions, themes, and highlighting engine. Any language and theme VS Code supports, ...
Read more >
CVE-2021-32770 Detail - NVD
Gatsby is a framework for building websites. The gatsby-source-wordpress plugin prior to versions 4.0.8 and 5.9.2 leaks .htaccess HTTP Basic ...
Read more >
A new VS Code extension for Gatsby has been released!
GatsbyHub is an open-source extension for Visual Studio Code that offers an interactive GUI for gatsby-cli. GatsbyHub allows you to browse ...
Read more >
Top VS Code Extensions for Application Security in 2021
Join 70,465 other developers as we learn, build, and grow together. ... at some extensions that enhance our vulnerability detection and ...
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