-
Notifications
You must be signed in to change notification settings - Fork 918
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
Add bootstrap
package resolution to version 3.4.0
#4757
Conversation
Signed-off-by: Manasvini B Suryanarayana <manasvis@amazon.com>
0ebaf22
to
9492e2f
Compare
Codecov Report
@@ Coverage Diff @@
## main #4757 +/- ##
==========================================
- Coverage 66.14% 66.13% -0.01%
==========================================
Files 3316 3316
Lines 63944 63944
Branches 10135 10135
==========================================
- Hits 42294 42292 -2
+ Misses 19248 19169 -79
- Partials 2402 2483 +81
Flags with carried forward coverage won't be shown. Click here to find out more. |
I think adding a resolution in package.json file won't affect the version of Bootstrap loaded via the CDN in the HTML file. Give a quick a look at this file Since it's part of a static example and not a part of our actual production code, it should not pose a security risk to our application. My point is that this basic.html file is merely an example or documentation file inside the What do you think @AMoo-Miki ? |
I agree with Anan. The problem was not with a dep's dep on bootstrap but rather a URL they use in their examples. |
Since |
I see your point in switching the package from |
@AMoo-Miki @manasvinibs whats our next steps here? |
I think I can close this PR for now as we do not want to add a package json resolution to the vulnerable bootstrap package that gets loaded through CDN links. In future, if we plan to address security threat caused by URLs pointing to vulnerable packages, we will have a separate PR to address the issue more broadly. |
Description
Path to dependency file: /node_modules/leaflet-draw/docs/examples/basic.html
Path to vulnerable library: /node_modules/leaflet-draw/docs/examples/basic.html
Currently in main, one of the node modules
leaflet-draw
pulls version ofbootstrap-3.3.7
through CDN link which has vulnerability. Adding package resolution to 3.4.0 to install safer version.Issues Resolved
#4729
#4728
#4727
#4725
#4723
#4722
Check List
yarn test:jest
yarn test:jest_integration
yarn test:ftr