fix(deps): patch serialize-javascript vulnerability
This commit is contained in:
1 parent
e38d29665b
commit
c8e623f277
3 files changed
+21
-6
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import { readFile } from 'node:fs/promises';
|
||||
|
||||
test('serialize-javascript is patched for CVE-2026-34043', async () => {
|
||||
const packageJson = JSON.parse(
|
||||
await readFile(new URL('../node_modules/serialize-javascript/package.json', import.meta.url), 'utf8'),
|
||||
);
|
||||
|
||||
assert.equal(
|
||||
packageJson.version,
|
||||
'7.0.5',
|
||||
'serialize-javascript must be upgraded to 7.0.5 or later',
|
||||
);
|
||||
});
|
||||
Reference in new issue
Block a user