You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fix CodeQL ReDoS in Windows smoke root validation #2031
Remove the exact CodeQL high-severity js/redos blocker introduced in the finalized desktop packaging runtime without changing accepted path semantics.
Evidence
Runtime propagation PRs #2029 and #2030 share head 83f1d1c2a1ac1126c4720f1094c905962c701219. GitHub CodeQL check 99629296558 flags apps/desktop/scripts/packaged-smoke-support.mjs:230: /^[A-Za-z]:\\[^\0/]+(?:\\[^\0/]+)*$/ can exponentially backtrack on crafted Windows paths.
Required correction
Replace only the vulnerable regular expression in validateWindowsSystemRoot with deterministic linear checks.
Preserve the exact contract: ASCII drive letter, colon, root backslash, no NUL, no forward slash, no empty path segments, length at most 260, win32.isAbsolute, exact win32.normalize(value) === value, then the existing non-symlink directory lstat check.
A clear implementation may validate the fixed prefix and then split value.slice(3) on backslash, requiring every segment to be nonempty. Do not introduce another ambiguous or nested regex.
Add adversarial tests with long repeated dot/backslash input, empty segments, trailing slash, forward slash, NUL, relative paths, normalization changes, and valid canonical roots. Keep fixed safe diagnostics and do not expose the input.
Change no release, signing, packaging, smoke authorization, environment, or native-launch behavior.
Integration
Target only the runtime epic branch selected by base-1952-epic-electron-runtime-app; never target main. Run focused desktop script tests, desktop typecheck/tests, git diff --check, and require CodeQL green. Do not merge the generated PR; root will review and merge it into runtime so both propagation PRs update together.
Implemented by #2033, merged into 1952-epic-electron-runtime-app (739319a). Closing the completed child issue during epic issue/PR reconciliation. Final desktop integration and delivery remain tracked by #1950 / #1970; this does not claim a main-branch release.
Activity
propr-dev commentedon Aug 31, 2026
🤖 AI processing has started for this issue using codex agent with gpt-5.6-sol model.
I'll analyze the problem and work on a solution. This may take a few minutes.
Processing Details:
codexgpt-5.6-sol2031/gpt-5.6-sol-fix-codeql-redos-in-windo-20260831-2018-gb91952-epic-electron-runtime-appissue-2031-20260831-2018-gpt-5.6-sol-gb9🔍 Track Task Execution
fix(ai): Resolve issue #2031 - Fix CodeQL ReDoS in Windows smoke root…
integry commentedon Sep 4, 2026
Implemented by #2033, merged into
1952-epic-electron-runtime-app(739319a). Closing the completed child issue during epic issue/PR reconciliation. Final desktop integration and delivery remain tracked by #1950 / #1970; this does not claim a main-branch release.