mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 08:55:50 +02: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:
@@ -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