Skip to content

Commit 14b317b

Browse files
authored
fix(security): upgrade jquery and bootstrap (#253)
* Upgrade Bootstrap to v3.4.1 This fixes several [vulnerabilities][0] that are present in the currently used Bootstrap v3.7.1. * Upgrade jQuery to v3.5.1 This fixes several [vulnerabilities][1] that are present in the currently used jQuery 3.2.1. [0]: https://snyk.io/test/npm/bootstrap/3.3.7 [1]: https://snyk.io/test/npm/jquery/3.2.1
1 parent 2a268c3 commit 14b317b

4 files changed

Lines changed: 11 additions & 19 deletions

File tree

public/bootstrap.min.css

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/bootstrap.min.js

Lines changed: 3 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/jquery.min.js

Lines changed: 2 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/server/views/layout.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
{{#if (useCdn)}}
1111
<!-- Bootstrap core CSS -->
12-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/bootstrap/3.3.7/css/bootstrap.min.css">
12+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/bootstrap/3.4.1/css/bootstrap.min.css">
1313
<!-- JSON Viewer -->
1414
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css">
1515
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
@@ -60,7 +60,7 @@
6060

6161
<input type="hidden" id="basePath" value="{{ basePath }}">
6262
{{#if (useCdn)}}
63-
<script type="text/javascript" src="//cdn.jsdelivr.net/g/jquery@3.2.1,bootstrap@3.3.7"></script>
63+
<script type="text/javascript" src="//cdn.jsdelivr.net/combine/npm/jquery@3.5.1,npm/bootstrap@3.4.1/dist/js/bootstrap.min.js"></script>
6464
{{else}}
6565
<script type="text/javascript" src="{{ basePath }}/jquery.min.js"></script>
6666
<script type="text/javascript" src="{{ basePath }}/bootstrap.min.js"></script>

0 commit comments

Comments
 (0)