mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-16 13:30:23 +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",
|
||||
"tough-cookie": "6.0.0",
|
||||
"undici": "^7.10.0",
|
||||
"validator": "13.15.15",
|
||||
"validator": "13.15.23",
|
||||
"webpack": "5.102.0",
|
||||
"webpack-merge": "6.0.1",
|
||||
"winston": "3.17.0",
|
||||
|
||||
@@ -88,6 +88,14 @@ describe('custom user fields', () => {
|
||||
{ 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(
|
||||
user.updateProfile(highRepUid, {
|
||||
uid: highRepUid,
|
||||
|
||||
Reference in New Issue
Block a user