Skip to content

Commit 00e649e

Browse files
authored
OKTA-1145322: upgrade courage handlebars underscore (#4020)
OKTA-1145322 Reapply "OKTA-1145322 : Upgrade courage, handlebar This reverts commit c8c8377.
1 parent d1af5e6 commit 00e649e

59 files changed

Lines changed: 2875 additions & 816 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.retireignore.json

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44
"version": "1.12.4",
55
"justification": "CVE issues (CVE-2019-11358, CVE-2020-11023) have been mitigated with a patched version of jQuery (packages/@okta/courage-dist/esm/src/courage/vendor/lib/jquery-1.12.4.js)"
66
},
7-
{
8-
"component": "underscore.js",
9-
"version": "1.13.1",
10-
"justification": "CVE-2026-27601: _.flatten and _.isEqual DoS via unbounded recursion. Mitigated - the widget does not pass untrusted external input to these functions. Upstream fix requires rebuilding courage-dist with underscore 1.13.8."
11-
},
127
{
138
"component": "dompurify",
149
"version": "2.5.8",
@@ -18,15 +13,5 @@
1813
"component": "DOMPurify",
1914
"version": "2.5.8",
2015
"justification": "CVE-2025-26791 has been patched locally within patches/dompurify+2.5.8.patch compared fix (https://github.com/cure53/DOMPurify/commit/d18ffcb554e0001748865da03ac75dd7829f0f02#diff-8e647ca2a1d9380f03114f7df5e6a70563c9cb40b03dca353a43ce84b974c2cdR6)"
21-
},
22-
{
23-
"component": "handlebars",
24-
"version": "4.7.7",
25-
"justification": "CVE-2026-33937 (critical, NumberLiteral AST injection RCE): Not exploitable — the widget never passes user-supplied objects to Handlebars.compile(); templates are precompiled at build time via babel-plugin-handlebars-inline-precompile. CVE-2026-33916 (medium, prototype pollution via partial resolution XSS): Low risk — requires a separate prototype pollution vulnerability as prerequisite; the widget does not expose prototype pollution vectors. CVE-2026-33941 (medium, CLI precompiler argument injection): Not exploitable — the widget does not use the Handlebars CLI; precompilation is done via Babel plugin at build time. CVE-2026-33939 (medium, __lookupSetter__ blocklist omission): Not exploitable — the widget does not set allowProtoMethodsByDefault:true. Upgrade to handlebars 4.7.9 tracked in OKTA-1145322."
26-
},
27-
{
28-
"component": "handlebars.js",
29-
"version": "4.7.7",
30-
"justification": "Same as handlebars 4.7.7 entry above. RetireJS may detect under alternate component name. Upgrade tracked in OKTA-1145322."
3116
}
3217
]

jest.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ module.exports = {
6464
'^@okta/qtip$': '@okta/qtip2/dist/jquery.qtip.js',
6565
'^@okta/duo$': `${LOCAL_PACKAGES}/vendor/duo_web_sdk/index.js`,
6666
'^@okta/typingdna$': `${LOCAL_PACKAGES}/vendor/TypingDnaRecorder-JavaScript/typingdna`,
67+
'^@okta/ui-libraries-oidc-auth-headers$':
68+
`${LOCAL_PACKAGES}/@okta/courage-dist/esm/stubs/ui-libraries-oidc-auth-headers.js`,
69+
'^@okta/ui-libraries-monolith$': `${LOCAL_PACKAGES}/@okta/courage-dist/esm/stubs/ui-libraries-monolith.js`,
6770
'^LoginRouter$': `${ROOT}/src/LoginRouter`,
6871
},
6972
setupFiles: [

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@
258258
"chokidar": "^3.5.1",
259259
"clipboard": "^1.5.16",
260260
"cross-fetch": "^3.1.5",
261-
"handlebars": "^4.7.7",
261+
"handlebars": "^4.7.9",
262262
"jquery": "^3.6.0",
263263
"parse-ms": "^2.0.0",
264264
"q": "1.4.1",

packages/@okta/courage-dist/esm/_virtual/create-new-lookup-object.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/@okta/courage-dist/esm/lib/handlebars/dist/cjs/handlebars/base.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@okta/courage-dist/esm/lib/handlebars/dist/cjs/handlebars/helpers.js

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

packages/@okta/courage-dist/esm/lib/handlebars/dist/cjs/handlebars/helpers/each.js

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

packages/@okta/courage-dist/esm/lib/handlebars/dist/cjs/handlebars/internal/create-new-lookup-object.js

Lines changed: 0 additions & 24 deletions
This file was deleted.

packages/@okta/courage-dist/esm/lib/handlebars/dist/cjs/handlebars/internal/proto-access.js

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

packages/@okta/courage-dist/esm/lib/handlebars/dist/cjs/handlebars/no-conflict.js

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

0 commit comments

Comments
 (0)