mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-16 11:37:37 +01:00
fix: update validator dep. to get fix for CVE-2025-56200
https://nvd.nist.gov/vuln/detail/CVE-2025-56200
This commit is contained in:
@@ -148,7 +148,7 @@
|
|||||||
"toobusy-js": "0.5.1",
|
"toobusy-js": "0.5.1",
|
||||||
"tough-cookie": "6.0.0",
|
"tough-cookie": "6.0.0",
|
||||||
"undici": "^7.10.0",
|
"undici": "^7.10.0",
|
||||||
"validator": "13.15.15",
|
"validator": "13.15.23",
|
||||||
"webpack": "5.102.0",
|
"webpack": "5.102.0",
|
||||||
"webpack-merge": "6.0.1",
|
"webpack-merge": "6.0.1",
|
||||||
"winston": "3.17.0",
|
"winston": "3.17.0",
|
||||||
|
|||||||
@@ -88,6 +88,14 @@ describe('custom user fields', () => {
|
|||||||
{ message: '[[error:custom-user-field-invalid-link, Website]]' },
|
{ message: '[[error:custom-user-field-invalid-link, Website]]' },
|
||||||
);
|
);
|
||||||
|
|
||||||
|
await assert.rejects(
|
||||||
|
user.updateProfile(highRepUid, {
|
||||||
|
uid: highRepUid,
|
||||||
|
website: 'javascript:alert("xss")',
|
||||||
|
}),
|
||||||
|
{ message: '[[error:custom-user-field-invalid-link, Website]]' },
|
||||||
|
);
|
||||||
|
|
||||||
await assert.rejects(
|
await assert.rejects(
|
||||||
user.updateProfile(highRepUid, {
|
user.updateProfile(highRepUid, {
|
||||||
uid: highRepUid,
|
uid: highRepUid,
|
||||||
|
|||||||
Reference in New Issue
Block a user