fix(security): raise postcss-selector-parser floor to 6.1.5
postcss-selector-parser@6.1.5 (dist-tag legacy-v6, published 2026-10-19) backports the GHSA-rj75-hqrm-r3gf fix (quadratic flat selector parsing) from 7.1.6. Raise the version-scoped override to ^6.1.5, staying on major 6 for the tailwindcss@3 / NativeWind 4 pipeline. Lockfile: one entry changed (version, resolved, integrity), package keys unchanged; integrity matches the registry. Clean-room npm ci installs a single 6.1.5 copy without rewriting the lock. Android JS bundle (expo export --no-bytecode --clear) is byte-identical before and after, 44 files, after a two-run determinism check. The smoke test floor is raised to 6.1.5 and fails on the old 6.1.4 install. npm audit unchanged (40): the advisory still lists < 7.1.6 as vulnerable, so the issue stays open until it recognizes 6.1.5. Refs #136 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
085b8e7d75
commit
f3cbb973af
3 changed files with 10 additions and 9 deletions
6
package-lock.json
generated
6
package-lock.json
generated
|
|
@ -9687,9 +9687,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/postcss-selector-parser": {
|
||||
"version": "6.1.4",
|
||||
"resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.4.tgz",
|
||||
"integrity": "sha512-bIoJLOmjCO1S9XdY/DcnR5hJxvrDir1PbGChrzXG3vw0/FOliy/fA3dmdhQ441kah4gKv+TwckGzex6wNS5cnQ==",
|
||||
"version": "6.1.5",
|
||||
"resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.5.tgz",
|
||||
"integrity": "sha512-TEHFzb5KRDKaOgJ4TYE+0jyJtFbjLvkdVOu0fZ2b6MTWzoqZd4Le+61aEppWkvTlYePgOX4ATL1wsAIPMLTw6Q==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"cssesc": "^3.0.0",
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@
|
|||
"@xmldom/xmldom": "^0.8.15",
|
||||
"uuid": "^11.1.1",
|
||||
"postcss": "^8.5.18",
|
||||
"postcss-selector-parser@^6.0.0": "^6.1.3",
|
||||
"postcss-selector-parser@^6.0.0": "^6.1.5",
|
||||
"source-map-js@^1.0.0": "^1.2.2",
|
||||
"http-cache-semantics@^4.0.0": "^4.3.0",
|
||||
"js-yaml@^3.0.0": "^3.15.2",
|
||||
|
|
|
|||
|
|
@ -306,10 +306,11 @@ check('every installed undici copy is >= 6.28.1', () => {
|
|||
);
|
||||
});
|
||||
|
||||
// --- Override floors (#128, #129) ---
|
||||
// --- Override floors (#128, #129, #136) ---
|
||||
// http-cache-semantics: version-scoped to major 4, a single copy (@expo/ngrok > got).
|
||||
// postcss-selector-parser: version-scoped to major 6 (tailwindcss@3 pipeline);
|
||||
// any other major is unexpected and must fail loudly.
|
||||
// any other major is unexpected and must fail loudly. 6.1.5 is the legacy-v6
|
||||
// backport of the GHSA-rj75 fix (#136).
|
||||
|
||||
check('every installed http-cache-semantics copy is >= 4.3.0', () => {
|
||||
const copies = installedCopies('http-cache-semantics');
|
||||
|
|
@ -322,16 +323,16 @@ check('every installed http-cache-semantics copy is >= 4.3.0', () => {
|
|||
);
|
||||
});
|
||||
|
||||
check('every installed postcss-selector-parser copy is 6.x and >= 6.1.3', () => {
|
||||
check('every installed postcss-selector-parser copy is 6.x and >= 6.1.5', () => {
|
||||
const copies = installedCopies('postcss-selector-parser');
|
||||
assert.ok(copies.length > 0, 'postcss-selector-parser is not installed');
|
||||
const strays = copies.filter(
|
||||
(c) => majorOf(c.version) !== '6' || !versionAtLeast(c.version, '6.1.3')
|
||||
(c) => majorOf(c.version) !== '6' || !versionAtLeast(c.version, '6.1.5')
|
||||
);
|
||||
assert.deepEqual(
|
||||
strays.map((c) => `${c.version} at ${path.relative(ROOT, c.dir)}`),
|
||||
[],
|
||||
'postcss-selector-parser must be 6.x >= 6.1.3'
|
||||
'postcss-selector-parser must be 6.x >= 6.1.5'
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue