danielmahon/gatsby-remark-relative-images

a 2.0.3 release for gatsby-remark-relative-images with updated lodash

bestrivens001 opened this issue · 1 comments

Hi, @danielmahon,

Issue Description

I noticed that a vulnerability is introduced in gatsby-remark-relative-images@2.0.2:
Vulnerability CVE-2021-23337 (high severity) affects package lodash (versions:<4.17.21): https://snyk.io/vuln/SNYK-JS-LODASHTEMPLATE-1088054
The above vulnerable package is referenced by gatsby-remark-relative-images@2.0.2 via:
gatsby-remark-relative-images@2.0.2 ➔ lodash@4.17.20

Since gatsby-remark-relative-images@2.0.2 (3,474 downloads per week) is referenced by 69 downstream projects (e.g., gatsby-theme-kepler 1.7.728, gatsby-theme-catalyst-core 7.0.4, gatsby-theme-catalyst-hydrogen, gatsby-theme-catalyst-bery 7.0.4), the vulnerability CVE-2021-23337 can be propagated into these downstream projects and expose security threats to them via the following package dependency paths:
(1)ggatsby-theme-hypersite@1.1.2 ➔ gatsby-theme-hypercore@1.1.2 ➔ gatsby-remark-relative-images@2.0.2 ➔ lodash@4.17.20
......

If gatsby-remark-relative-images@2.0.* removes the vulnerable package from the above version, then its fixed version can help downstream users decrease their pain.

Given the large number of downstream users, could you help update your package to remove the vulnerability from gatsby-remark-relative-images@2.0.2 ?

Fixing suggestions

In gatsby-remark-relative-images@2.0.3, maybe you can kindly try to perform the following upgrade :
lodash 4.17.20 ➔ 4.17.21;

Note:
lodash@4.17.21(>=4.17.21) has fixed the vulnerability CVE-2021-23337.

Thank you for your attention to this issue and welcome to share other ways to resolve the issue.

Best regards,
^_^

fixed in d435db1