Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
147 changes: 37 additions & 110 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@
"overrides": {
"fontless": {
"esbuild": "0.28.2"
}
},
"@intlify/vue-i18n-extensions": "9.0.0",
"@intlify/core": "11.4.14",
"@intlify/core-base": "11.4.14",
"@intlify/devtools-types": "11.4.14",
"@intlify/message-compiler": "11.4.14",
"@intlify/shared": "11.4.14",
"vue-i18n": "11.4.14",
"follow-redirects": "1.16.2"
}
}
37 changes: 37 additions & 0 deletions tests/security-advisory-regressions.test.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import test from 'node:test';
import assert from 'node:assert/strict';
import { readFile } from 'node:fs/promises';

const read = path => readFile(new URL('../' + path, import.meta.url), 'utf8');

// GHSA-83rm-6c8r-g728, GHSA-8rc2-428q-7ww3 and GHSA-mrwp-f3q8-3g9p.
// Verify the *resolved* dependency tree, not just the manifest.
test('patched Vue I18n tree does not include unsupported/vulnerable v10 copies', async () => {
const manifest = JSON.parse(await read('package.json'));
const lock = JSON.parse(await read('package-lock.json'));
const required = ['@intlify/core', '@intlify/core-base', '@intlify/devtools-types',
'@intlify/message-compiler', '@intlify/shared', 'vue-i18n'];
assert.equal(manifest.overrides['@intlify/vue-i18n-extensions'], '9.0.0');
assert.equal(lock.packages['node_modules/@intlify/vue-i18n-extensions']?.version, '9.0.0');
for (const pkg of required) {
assert.equal(manifest.overrides[pkg], '11.4.14');
const installed = Object.entries(lock.packages)
.filter(([path]) => path.endsWith('/node_modules/' + pkg) || path === 'node_modules/' + pkg);
assert.ok(installed.length, 'Package missing: ' + pkg);
for (const [path, entry] of installed) {
assert.equal(entry.version, '11.4.14', 'Unpatched package: ' + path);
}
}
});

test('redirect client must be patched to prevent cross-origin credential forwarding', async () => {
const manifest = JSON.parse(await read('package.json'));
const lock = JSON.parse(await read('package-lock.json'));
assert.equal(manifest.overrides['follow-redirects'], '1.16.2');
const resolved = Object.entries(lock.packages).filter(([path]) =>
path === 'node_modules/follow-redirects' || path.endsWith('/node_modules/follow-redirects'));
assert.ok(resolved.length);
for (const [path, entry] of resolved) {
assert.equal(entry.version, '1.16.2', 'Unpatched package: ' + path);
}
});
Loading