Skip to content

Commit aec780c

Browse files
committed
deps: update vulnerable packages
- Fixes dependabot alert findings: 232, 231 and 230 Refs: KEH-281
1 parent 28f0190 commit aec780c

3 files changed

Lines changed: 38 additions & 50 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"eslint-plugin-prettier": "^5.2.1",
6969
"eslint-plugin-react": "^7.37.5",
7070
"eslint-plugin-react-hooks": "^5.2.0",
71-
"eslint-plugin-sonarjs": "^3.0.2",
71+
"eslint-plugin-sonarjs": "^4.0.2",
7272
"esrun": "^3.2.26",
7373
"font-awesome": "^4.7.0",
7474
"glob": "^10.5.0",

src/components/RichTextEditor/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -682,8 +682,8 @@ class RichTextEditor extends React.Component {
682682
const selection = editorState.getSelection();
683683
const newContent = Modifier.insertText(contentState, selection, linkText);
684684

685-
// convert given targetId into javascirpt focus function
686-
const hrefValue = `javascript:document.getElementById('${linkTargetId}').focus();`;
685+
// Use a normal fragment link for skip navigation to avoid javascript: URLs.
686+
const hrefValue = `#${linkTargetId}`;
687687
const className = linkIsHidden ? 'hidden-link' : '';
688688
const newContentWithEntity = newContent.createEntity('LINK', 'MUTABLE', {
689689
url: hrefValue,

yarn.lock

Lines changed: 35 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@
548548
dependencies:
549549
eslint-visitor-keys "^3.4.3"
550550

551-
"@eslint-community/regexpp@4.12.2", "@eslint-community/regexpp@^4.12.1", "@eslint-community/regexpp@^4.12.2", "@eslint-community/regexpp@^4.8.0":
551+
"@eslint-community/regexpp@^4.12.1", "@eslint-community/regexpp@^4.12.2", "@eslint-community/regexpp@^4.8.0":
552552
version "4.12.2"
553553
resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.12.2.tgz#bccdf615bcf7b6e8db830ec0b8d21c9a25de597b"
554554
integrity sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==
@@ -745,18 +745,6 @@
745745
resolved "https://registry.yarnpkg.com/@humanwhocodes/retry/-/retry-0.4.3.tgz#c2b9d2e374ee62c586d3adbea87199b1d7a7a6ba"
746746
integrity sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==
747747

748-
"@isaacs/balanced-match@^4.0.1":
749-
version "4.0.1"
750-
resolved "https://registry.yarnpkg.com/@isaacs/balanced-match/-/balanced-match-4.0.1.tgz#3081dadbc3460661b751e7591d7faea5df39dd29"
751-
integrity sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==
752-
753-
"@isaacs/brace-expansion@^5.0.1":
754-
version "5.0.1"
755-
resolved "https://registry.yarnpkg.com/@isaacs/brace-expansion/-/brace-expansion-5.0.1.tgz#0ef5a92d91f2fff2a37646ce54da9e5f599f6eff"
756-
integrity sha512-WMz71T1JS624nWj2n2fnYAuPovhv7EUhk69R6i9dsVyzxt5eM3bjwvgk9L+APE1TRscGysAVMANkB0jh0LQZrQ==
757-
dependencies:
758-
"@isaacs/balanced-match" "^4.0.1"
759-
760748
"@isaacs/cliui@^8.0.2":
761749
version "8.0.2"
762750
resolved "https://registry.yarnpkg.com/@isaacs/cliui/-/cliui-8.0.2.tgz#b37667b7bc181c168782259bab42474fbf52b550"
@@ -2152,12 +2140,12 @@ browserslist@^4.24.0, browserslist@^4.28.1:
21522140
node-releases "^2.0.36"
21532141
update-browserslist-db "^1.2.3"
21542142

2155-
builtin-modules@3.3.0:
2143+
builtin-modules@^3.3.0:
21562144
version "3.3.0"
21572145
resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-3.3.0.tgz#cae62812b89801e9656336e46223e030386be7b6"
21582146
integrity sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==
21592147

2160-
bytes@3.1.2:
2148+
bytes@^3.1.2:
21612149
version "3.1.2"
21622150
resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.2.tgz#8b0beeb98605adf1b128fa4386403c009e0221a5"
21632151
integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==
@@ -3062,20 +3050,22 @@ eslint-plugin-react@^7.37.5:
30623050
string.prototype.matchall "^4.0.12"
30633051
string.prototype.repeat "^1.0.0"
30643052

3065-
eslint-plugin-sonarjs@^3.0.2:
3066-
version "3.0.7"
3067-
resolved "https://registry.yarnpkg.com/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-3.0.7.tgz#c2787b1a7a5f918b5b902daf66af056dea64e03c"
3068-
integrity sha512-62jB20krIPvcwBLAyG3VVKa2ce2j2lL1yCb8Y0ylMRR/dLvCCTiQx8gQbXb+G81k1alPZ2/I3muZinqWQdBbzw==
3069-
dependencies:
3070-
"@eslint-community/regexpp" "4.12.2"
3071-
builtin-modules "3.3.0"
3072-
bytes "3.1.2"
3073-
functional-red-black-tree "1.0.1"
3074-
jsx-ast-utils-x "0.1.0"
3075-
lodash.merge "4.6.2"
3076-
minimatch "10.1.2"
3077-
scslre "0.3.0"
3078-
semver "7.7.4"
3053+
eslint-plugin-sonarjs@^4.0.2:
3054+
version "4.0.2"
3055+
resolved "https://registry.yarnpkg.com/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-4.0.2.tgz#0179bb1cdf4506dfbbb4c571a5d9595d1700490e"
3056+
integrity sha512-BTcT1zr1iTbmJtVlcesISwnXzh+9uhf9LEOr+RRNf4kR8xA0HQTPft4oiyOCzCOGKkpSJxjR8ZYF6H7VPyplyw==
3057+
dependencies:
3058+
"@eslint-community/regexpp" "^4.12.2"
3059+
builtin-modules "^3.3.0"
3060+
bytes "^3.1.2"
3061+
functional-red-black-tree "^1.0.1"
3062+
globals "^17.4.0"
3063+
jsx-ast-utils-x "^0.1.0"
3064+
lodash.merge "^4.6.2"
3065+
minimatch "^10.2.4"
3066+
scslre "^0.3.0"
3067+
semver "^7.7.4"
3068+
ts-api-utils "^2.4.0"
30793069
typescript ">=5"
30803070

30813071
eslint-scope@^8.4.0:
@@ -3425,7 +3415,7 @@ function.prototype.name@^1.1.6, function.prototype.name@^1.1.8:
34253415
hasown "^2.0.2"
34263416
is-callable "^1.2.7"
34273417

3428-
functional-red-black-tree@1.0.1:
3418+
functional-red-black-tree@^1.0.1:
34293419
version "1.0.1"
34303420
resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327"
34313421
integrity sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==
@@ -3552,6 +3542,11 @@ globals@^16.0.0:
35523542
resolved "https://registry.yarnpkg.com/globals/-/globals-16.5.0.tgz#ccf1594a437b97653b2be13ed4d8f5c9f850cac1"
35533543
integrity sha512-c/c15i26VrJ4IRt5Z89DnIzCGDn9EcebibhAOjw5ibqEHsE1wLUgkPn9RDmNcUKyU87GeaL633nyJ+pplFR2ZQ==
35543544

3545+
globals@^17.4.0:
3546+
version "17.4.0"
3547+
resolved "https://registry.yarnpkg.com/globals/-/globals-17.4.0.tgz#33d7d297ed1536b388a0e2f4bcd0ff19c8ff91b5"
3548+
integrity sha512-hjrNztw/VajQwOLsMNT1cbJiH2muO3OROCHnbehc8eY5JyD2gqz4AcMHPqgaOR59DjgUjYAYLeH699g/eWi2jw==
3549+
35553550
globalthis@^1.0.4:
35563551
version "1.0.4"
35573552
resolved "https://registry.yarnpkg.com/globalthis/-/globalthis-1.0.4.tgz#7430ed3a975d97bfb59bcce41f5cabbafa651236"
@@ -4391,7 +4386,7 @@ jsonparse@^1.2.0:
43914386
resolved "https://registry.yarnpkg.com/jsonparse/-/jsonparse-1.3.1.tgz#3f4dae4a91fac315f71062f8521cc239f1366280"
43924387
integrity sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==
43934388

4394-
jsx-ast-utils-x@0.1.0:
4389+
jsx-ast-utils-x@^0.1.0:
43954390
version "0.1.0"
43964391
resolved "https://registry.yarnpkg.com/jsx-ast-utils-x/-/jsx-ast-utils-x-0.1.0.tgz#b0933d66a69e0aa1ae23f74fb87b079ec298652f"
43974392
integrity sha512-eQQBjBnsVtGacsG9uJNB8qOr3yA8rga4wAaGG1qRcBzSIvfhERLrWxMAM1hp5fcS6Abo8M4+bUBTekYR0qTPQw==
@@ -4591,7 +4586,7 @@ lodash.kebabcase@^4.1.1:
45914586
resolved "https://registry.yarnpkg.com/lodash.kebabcase/-/lodash.kebabcase-4.1.1.tgz#8489b1cb0d29ff88195cceca448ff6d6cc295c36"
45924587
integrity sha512-N8XRTIMMqqDgSy4VLKPnJ/+hpGZN+PHQiJnSenYqPaVV/NCqEogTnAdZLQiGKhxX+JCs8waWq2t1XHWKOmlY8g==
45934588

4594-
lodash.merge@4.6.2, lodash.merge@^4.6.2:
4589+
lodash.merge@^4.6.2:
45954590
version "4.6.2"
45964591
resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a"
45974592
integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==
@@ -5181,21 +5176,14 @@ min-indent@^1.0.0:
51815176
resolved "https://registry.yarnpkg.com/min-indent/-/min-indent-1.0.1.tgz#a63f681673b30571fbe8bc25686ae746eefa9869"
51825177
integrity sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==
51835178

5184-
minimatch@10.1.2:
5185-
version "10.1.2"
5186-
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-10.1.2.tgz#6c3f289f9de66d628fa3feb1842804396a43d81c"
5187-
integrity sha512-fu656aJ0n2kcXwsnwnv9g24tkU5uSmOlTjd6WyyaKm2Z+h1qmY6bAjrcaIxF/BslFqbZ8UBtbJi7KgQOZD2PTw==
5188-
dependencies:
5189-
"@isaacs/brace-expansion" "^5.0.1"
5190-
51915179
minimatch@9.0.3, minimatch@9.0.7:
51925180
version "9.0.7"
51935181
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.7.tgz#d76c4d0b3b527877016d6cc1b9922fc8e0ffe7b0"
51945182
integrity sha512-MOwgjc8tfrpn5QQEvjijjmDVtMw2oL88ugTevzxQnzRLm6l3fVEF2gzU0kYeYYKD8C66+IdGX6peJ4MyUlUnPg==
51955183
dependencies:
51965184
brace-expansion "^5.0.2"
51975185

5198-
minimatch@^10.2.2:
5186+
minimatch@^10.2.2, minimatch@^10.2.4:
51995187
version "10.2.5"
52005188
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-10.2.5.tgz#bd48687a0be38ed2961399105600f832095861d1"
52015189
integrity sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==
@@ -6296,7 +6284,7 @@ scheduler@^0.23.2:
62966284
dependencies:
62976285
loose-envify "^1.1.0"
62986286

6299-
scslre@0.3.0:
6287+
scslre@^0.3.0:
63006288
version "0.3.0"
63016289
resolved "https://registry.yarnpkg.com/scslre/-/scslre-0.3.0.tgz#c3211e9bfc5547fc86b1eabaa34ed1a657060155"
63026290
integrity sha512-3A6sD0WYP7+QrjbfNA2FN3FsOaGGFoekCVgTyypy53gPxhbkCIjtO6YWgdrfM+n/8sI8JeXZOIxsHjMTNxQ4nQ==
@@ -6305,16 +6293,16 @@ scslre@0.3.0:
63056293
refa "^0.12.0"
63066294
regexp-ast-analysis "^0.7.0"
63076295

6308-
semver@7.7.4, semver@^7.5.3, semver@^7.5.4, semver@^7.6.0, semver@^7.7.3:
6309-
version "7.7.4"
6310-
resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.4.tgz#28464e36060e991fa7a11d0279d2d3f3b57a7e8a"
6311-
integrity sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==
6312-
63136296
semver@^6.0.0, semver@^6.3.1:
63146297
version "6.3.1"
63156298
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4"
63166299
integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==
63176300

6301+
semver@^7.5.3, semver@^7.5.4, semver@^7.6.0, semver@^7.7.3, semver@^7.7.4:
6302+
version "7.7.4"
6303+
resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.4.tgz#28464e36060e991fa7a11d0279d2d3f3b57a7e8a"
6304+
integrity sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==
6305+
63186306
set-blocking@^2.0.0:
63196307
version "2.0.0"
63206308
resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7"
@@ -6824,7 +6812,7 @@ ts-api-utils@^1.0.1:
68246812
resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-1.4.3.tgz#bfc2215fe6528fecab2b0fba570a2e8a4263b064"
68256813
integrity sha512-i3eMG77UTMD0hZhgRS562pv83RC6ukSAC2GMNWc+9dieh/+jDM5u5YG+NHX6VNDRHQcHwmsTHctP9LhbC3WxVw==
68266814

6827-
ts-api-utils@^2.5.0:
6815+
ts-api-utils@^2.4.0, ts-api-utils@^2.5.0:
68286816
version "2.5.0"
68296817
resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-2.5.0.tgz#4acd4a155e22734990a5ed1fe9e97f113bcb37c1"
68306818
integrity sha512-OJ/ibxhPlqrMM0UiNHJ/0CKQkoKF243/AEmplt3qpRgkW8VG7IfOS41h7V8TjITqdByHzrjcS/2si+y4lIh8NA==

0 commit comments

Comments
 (0)