Skip to content

Commit a7af2b4

Browse files
JasonVMoCopilot
andauthored
fix(deps): remediate advisories and refresh Windows 0.81 (#4506)
Upgrade age-eligible security fixes and compatible tooling, move RNW to 0.81.38, and retire the upstream-fixed Windows CLI patch. Preserve and verify existing security backports. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 445c62f9-2720-4c70-bf23-d8876009c78f
1 parent c10baa5 commit a7af2b4

6 files changed

Lines changed: 161 additions & 172 deletions

File tree

‎.changeset/tangy-meteors-fold.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
3+
---
4+
5+

‎.yarn/patches/@react-native-windows-cli-npm-0.81.8-9ffb7042e8.patch‎

Lines changed: 0 additions & 35 deletions
This file was deleted.

‎package.json‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,13 @@
6666
"zx": "^8.2.4"
6767
},
6868
"resolutions": {
69-
"@fluentui/react-native-icons/@types/react-native": "ignore:",
7069
"@nevware21/ts-utils": "0.14.0",
71-
"@react-native-windows/cli": "patch:@react-native-windows/cli@npm%3A0.81.8#~/.yarn/patches/@react-native-windows-cli-npm-0.81.8-9ffb7042e8.patch",
7270
"@storybook/addon-ondevice-controls": "10.7.1",
7371
"@storybook/react-native-theming": "10.7.1",
7472
"@storybook/react-native-ui-common": "10.7.1",
7573
"@storybook/react-native-ui-lite": "10.7.1",
7674
"@types/react": "19.1.17",
77-
"basic-ftp@npm:^5.3.1": "6.2.3",
75+
"basic-ftp@npm:^5.3.1": "6.2.6",
7876
"body-parser@npm:^1.20.3": "1.20.9",
7977
"body-parser@npm:^2.2.2": "2.4.0",
8078
"brace-expansion@npm:^1.1.7": "1.1.21",
@@ -87,7 +85,7 @@
8785
"deepmerge@npm:^4.3.1": "patch:deepmerge@npm%3A4.3.1#~/.yarn/patches/deepmerge-npm-4.3.1-4f751a0844.patch",
8886
"esbuild@npm:~0.25.0": "^0.28.0",
8987
"fast-uri@npm:^3.0.1": "3.1.9",
90-
"fast-xml-parser@npm:^4.4.1": "5.11.0",
88+
"fast-xml-parser@npm:^4.4.1": "5.12.0",
9189
"glob@npm:^10.2.2 || ^11.0.3 || ^12.0.0 || ^13.0.0": "patch:glob@npm%3A13.0.6#~/.yarn/patches/glob-npm-13.0.6-864eb0cece.patch",
9290
"glob@npm:^13.0.0": "patch:glob@npm%3A13.0.6#~/.yarn/patches/glob-npm-13.0.6-864eb0cece.patch",
9391
"glob@npm:^13.0.6": "patch:glob@npm%3A13.0.6#~/.yarn/patches/glob-npm-13.0.6-864eb0cece.patch",
@@ -101,7 +99,7 @@
10199
"moment@npm:^2.29.4": "2.31.0",
102100
"path-to-regexp@npm:8.3.0": "^8.4.2",
103101
"react-native-macos": "patch:react-native-macos@npm%3A0.81.9#~/.yarn/patches/react-native-macos-npm-0.81.9-aa583a0648.patch&~/.yarn/patches/react-native-macos-npm-0.81.9-native-props.patch",
104-
"react-native-windows": "0.81.35",
102+
"react-native-windows": "0.81.38",
105103
"shell-quote": "1.11.0",
106104
"smol-toml@npm:^1.6.1": "1.9.0",
107105
"socks@npm:^2.8.3": "2.8.9",

‎references/agents/repository/dependency-security.md‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,31 @@ confirm their normal modules load without extraction, resolve `extract-zip` to
155155
`ignore:`, regenerate and deduplicate the lockfile, then prove the browser
156156
archive path fails closed and the native tooling still works.
157157

158+
## Published security fixes
159+
160+
The November 16, 2026 refresh fixes nine advisories with published releases:
161+
162+
- `@hono/node-server` 2.1.6 and `hono` 4.13.17 replace the vulnerable MCP SDK
163+
transitive dependencies. This repository's MCP adapter uses stdio, not the
164+
SDK's Hono HTTP transport; retain the fixed lockfile selections anyway.
165+
- `basic-ftp` 6.2.6 fixes inherited MLSD fact-handler lookups. Its path is
166+
Markdown link checking through `proxy-agent`, `pac-proxy-agent`, and
167+
`get-uri`; keep the existing narrow resolution rather than restoring 5.x.
168+
- `fast-xml-parser` 5.12.0 fixes unterminated stop-node scanning in React Native
169+
CLI and test-app tooling. Update both the older CLI's narrow resolution and
170+
the compatible 5.x lockfile paths.
171+
172+
The scripts security suite checks FTP metadata parsing, bounded XML parsing,
173+
and Hono hyperlink-auditing CSRF protection against the installed releases.
174+
It also verifies that the published Windows CLI loads on non-Windows hosts:
175+
CLI 0.81.11 supersedes the local 0.81.8 PowerShell-discovery patch.
176+
177+
The seven-day gate was unchanged. All 19 newly selected npm versions predate
178+
the session cutoff of November 9, 2026 at 17:51:33.340 UTC. React Native Windows
179+
0.81.38 is the newest eligible 0.81 patch at that cutoff; 0.81.40 and 0.85.2
180+
were published on November 13 and are too young. The 0.85 platform migration
181+
is intentionally outside this compatible-update scope.
182+
158183
## Carried security backports
159184

160185
The root resolutions carry the following focused Yarn patches. Run

‎scripts/src/utils/securityPatches.test.ts‎

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,48 @@ function installedPackage(name: string, version: string, patched = true) {
2323
return { root, manifest, require, module: require(root) };
2424
}
2525

26+
it('Windows CLI configuration loads without probing PowerShell on other hosts', { skip: process.platform === 'win32' }, () => {
27+
const require = createRequire(new URL('../../../apps/storybook/package.json', import.meta.url));
28+
assert.doesNotThrow(() => require('@react-native-windows/cli'));
29+
const { getHealthChecks } = require('@react-native-windows/cli/lib-commonjs/commands/healthCheck/healthChecks.js');
30+
assert.equal(getHealthChecks(), undefined);
31+
});
32+
33+
it('basic-ftp ignores inherited MLSD fact names without losing file metadata', () => {
34+
const { module: ftp } = installedPackage('basic-ftp', '6.2.6', false);
35+
for (const fact of ['__proto__', 'constructor', 'toString']) {
36+
const [file] = ftp.parseList(`${fact}=x;type=file;size=10; example.txt`);
37+
assert.equal(file.name, 'example.txt');
38+
assert.equal(file.size, 10);
39+
assert.equal(file.isFile, true);
40+
}
41+
});
42+
43+
it('fast-xml-parser rejects unterminated stop-node tags without repeated scanning', () => {
44+
const { module: xml } = installedPackage('fast-xml-parser', '5.12.0', false);
45+
const parser = new xml.XMLParser({ stopNodes: ['stop'] });
46+
const start = performance.now();
47+
assert.throws(() => parser.parse('<stop>' + '<a '.repeat(30_000)), /Unexpected end/);
48+
assert.ok(performance.now() - start < 1000, 'Unterminated stop-node tags must not block for seconds');
49+
assert.deepEqual(parser.parse('<stop>literal <a /></stop>'), { stop: 'literal <a />' });
50+
});
51+
52+
it('Hono applies CSRF protection to cross-origin hyperlink auditing requests', async () => {
53+
const { module: hono, require } = installedPackage('hono', '4.13.17', false);
54+
const { csrf } = require('hono/csrf');
55+
const app = new hono.Hono();
56+
app.use('*', csrf());
57+
app.post('/', (context: { text: (value: string) => Response }) => context.text('updated'));
58+
for (const origin of ['https://other.example', 'https://service.example']) {
59+
const response = await app.request('https://service.example/', {
60+
method: 'POST',
61+
headers: { 'Content-Type': 'text/ping', Origin: origin },
62+
body: 'PING',
63+
});
64+
assert.equal(response.status, origin === 'https://service.example' ? 200 : 403);
65+
}
66+
});
67+
2668
it('deepmerge cannot poison a result through either input or nested placeholders', () => {
2769
const { root, require } = installedPackage('deepmerge', '4.3.1');
2870
for (const entry of ['dist/cjs.js', 'dist/umd.js']) {

0 commit comments

Comments
 (0)