CARVIEW |
Select Language
HTTP/2 200
date: Tue, 22 Jul 2025 00:04:28 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/auth0/node-jsonwebtoken.git
etag: W/"5ddeba4be68cc3799bbd2e332e65d237"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=nB8oQnqaguoCeF3lVUJYqKGlijq5nx%2Fha%2BPLQ7FhB2ajy%2F26%2FxJdQoohSXQp5ZslW5FLEkq6xNaASV27RCKoe7ALRoOjc%2B0pe2nEimaQ%2B2oXCDEqBDqua1VzT0IZgFdr4yasyAHma55XsKRgqOGTsrGV7NHcHcaJAM36Mv%2BuC8mEWxd%2Bc%2FKLXgxeB8pmvwQzyDirZv2tfzXs%2Fi5tBBRo%2BkNQFBm9JUXT6JiwWQhKCvLehHm1FIAQdc1%2FXWTMavH8NPBknkMsNWcxq3ExX7%2FROQ%3D%3D--VN5tghJjuxOw4IPv--XD1zzDOQATZHr6dgphVNZw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.718884349.1753142667; Path=/; Domain=github.com; Expires=Wed, 22 Jul 2026 00:04:27 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Wed, 22 Jul 2026 00:04:27 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: C872:1C9F12:BDAA:120F1:687ED58B
fix!: Prevent accidental use of insecure key sizes & misconfiguration… · auth0/node-jsonwebtoken@ecdf6cc · GitHub
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit ecdf6cc
authored
fix!: Prevent accidental use of insecure key sizes & misconfiguration of secrets (#852)
* fix!: Disable use of weak RSA key sizes for asymmetric algorithms
Added checks to prevent invalid secrets from being used with the HS*** algorithms when signing and verifying
Added checks to prevent the use of insecure asymmetric key sizes except when explicitly overriden via options
Prevented Buffers containing malicious objects from being used as key material.
BREAKING CHANGE: Requires node 12.x or later to allow use of `KeyObject`1 parent 8345030 commit ecdf6ccCopy full SHA for ecdf6cc
File tree
Expand file treeCollapse file tree
10 files changed
+267
-138
lines changedFilter options
- .circleci
- test
Expand file treeCollapse file tree
10 files changed
+267
-138
lines changed+12-36Lines changed: 12 additions & 36 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 |
| - | |
| 20 | + | |
21 | 21 |
| |
22 |
| - | |
| 22 | + | |
23 | 23 |
| |
24 | 24 |
| |
25 |
| - | |
| 25 | + | |
26 | 26 |
| |
27 |
| - | |
| 27 | + | |
28 | 28 |
| |
29 | 29 |
| |
30 |
| - | |
| 30 | + | |
31 | 31 |
| |
32 |
| - | |
| 32 | + | |
33 | 33 |
| |
34 | 34 |
| |
35 |
| - | |
| 35 | + | |
36 | 36 |
| |
37 |
| - | |
38 |
| - | |
39 |
| - | |
40 |
| - | |
41 |
| - | |
42 |
| - | |
43 |
| - | |
44 |
| - | |
45 |
| - | |
46 |
| - | |
47 |
| - | |
48 |
| - | |
49 |
| - | |
50 |
| - | |
51 |
| - | |
52 |
| - | |
53 |
| - | |
54 |
| - | |
55 |
| - | |
56 |
| - | |
57 |
| - | |
| 37 | + | |
58 | 38 |
| |
59 | 39 |
| |
60 | 40 |
| |
61 | 41 |
| |
62 | 42 |
| |
63 | 43 |
| |
64 |
| - | |
65 |
| - | |
66 |
| - | |
67 |
| - | |
68 |
| - | |
69 |
| - | |
70 |
| - | |
71 |
| - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + |
+27-20Lines changed: 27 additions & 20 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 |
| - | |
4 |
| - | |
| 3 | + | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
| |||
32 | 32 |
| |
33 | 33 |
| |
34 | 34 |
| |
35 |
| - | |
| 35 | + | |
36 | 36 |
| |
| 37 | + | |
37 | 38 |
| |
38 | 39 |
| |
39 | 40 |
| |
| |||
50 | 51 |
| |
51 | 52 |
| |
52 | 53 |
| |
| 54 | + | |
53 | 55 |
| |
54 | 56 |
| |
55 | 57 |
| |
| |||
129 | 131 |
| |
130 | 132 |
| |
131 | 133 |
| |
132 |
| - | |
| 134 | + | |
133 | 135 |
| |
134 | 136 |
| |
135 | 137 |
| |
136 | 138 |
| |
137 | 139 |
| |
138 | 140 |
| |
139 | 141 |
| |
140 |
| - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
141 | 148 |
| |
142 | 149 |
| |
143 | 150 |
| |
| |||
347 | 354 |
| |
348 | 355 |
| |
349 | 356 |
| |
350 |
| - | |
351 |
| - | |
352 |
| - | |
353 |
| - | |
354 |
| - | |
355 |
| - | |
356 |
| - | |
357 |
| - | |
358 |
| - | |
359 |
| - | |
360 |
| - | |
361 |
| - | |
362 |
| - | |
363 |
| - | |
364 |
| - | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
365 | 372 |
| |
366 | 373 |
| |
367 | 374 |
| |
|
+4-10Lines changed: 4 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 |
| - | |
41 |
| - | |
42 |
| - | |
43 |
| - | |
44 |
| - | |
45 |
| - | |
46 |
| - | |
| 40 | + | |
47 | 41 |
| |
48 |
| - | |
| 42 | + | |
49 | 43 |
| |
50 | 44 |
| |
51 | 45 |
| |
| |||
59 | 53 |
| |
60 | 54 |
| |
61 | 55 |
| |
62 |
| - | |
63 |
| - | |
| 56 | + | |
| 57 | + | |
64 | 58 |
| |
65 | 59 |
| |
66 | 60 |
| |
|
+56-25Lines changed: 56 additions & 25 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
2 |
| - | |
3 |
| - | |
4 |
| - | |
5 |
| - | |
6 |
| - | |
7 |
| - | |
8 |
| - | |
9 |
| - | |
10 |
| - | |
11 |
| - | |
12 |
| - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
13 | 8 |
| |
14 | 9 |
| |
15 | 10 |
| |
16 | 11 |
| |
17 |
| - | |
| 12 | + | |
18 | 13 |
| |
19 | 14 |
| |
20 | 15 |
| |
| |||
26 | 21 |
| |
27 | 22 |
| |
28 | 23 |
| |
29 |
| - | |
| 24 | + | |
| 25 | + | |
30 | 26 |
| |
31 | 27 |
| |
32 |
| - | |
| 28 | + | |
33 | 29 |
| |
34 | 30 |
| |
35 | 31 |
| |
| |||
41 | 37 |
| |
42 | 38 |
| |
43 | 39 |
| |
44 |
| - | |
| 40 | + | |
45 | 41 |
| |
46 | 42 |
| |
47 | 43 |
| |
| |||
62 | 58 |
| |
63 | 59 |
| |
64 | 60 |
| |
65 |
| - | |
| 61 | + | |
66 | 62 |
| |
67 | 63 |
| |
68 | 64 |
| |
69 | 65 |
| |
70 | 66 |
| |
71 | 67 |
| |
72 |
| - | |
| 68 | + | |
73 | 69 |
| |
74 | 70 |
| |
75 | 71 |
| |
| |||
87 | 83 |
| |
88 | 84 |
| |
89 | 85 |
| |
90 |
| - | |
| 86 | + | |
91 | 87 |
| |
92 | 88 |
| |
93 |
| - | |
| 89 | + | |
94 | 90 |
| |
95 | 91 |
| |
96 | 92 |
| |
| |||
107 | 103 |
| |
108 | 104 |
| |
109 | 105 |
| |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
110 | 132 |
| |
111 | 133 |
| |
112 | 134 |
| |
| |||
120 | 142 |
| |
121 | 143 |
| |
122 | 144 |
| |
123 |
| - | |
| 145 | + | |
124 | 146 |
| |
125 | 147 |
| |
126 | 148 |
| |
| |||
144 | 166 |
| |
145 | 167 |
| |
146 | 168 |
| |
147 |
| - | |
| 169 | + | |
148 | 170 |
| |
149 | 171 |
| |
150 | 172 |
| |
| |||
177 | 199 |
| |
178 | 200 |
| |
179 | 201 |
| |
180 |
| - | |
| 202 | + | |
181 | 203 |
| |
182 | 204 |
| |
183 | 205 |
| |
| |||
186 | 208 |
| |
187 | 209 |
| |
188 | 210 |
| |
189 |
| - | |
| 211 | + | |
190 | 212 |
| |
191 | 213 |
| |
192 | 214 |
| |
| |||
198 | 220 |
| |
199 | 221 |
| |
200 | 222 |
| |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
201 | 227 |
| |
202 | 228 |
| |
203 | 229 |
| |
204 |
| - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
205 | 236 |
| |
206 | 237 |
|
+16Lines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| 5 | + | |
5 | 6 |
| |
6 | 7 |
| |
7 | 8 |
| |
| |||
59 | 60 |
| |
60 | 61 |
| |
61 | 62 |
| |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
62 | 78 |
| |
63 | 79 |
| |
64 | 80 |
| |
|
You can’t perform that action at this time.
0 commit comments