Skip to content

Phase 8: security review, CodeQL, metrics baseline and roadmap - #630

Merged
kevindb merged 7 commits into
mainfrom
phase-8-review
Oct 31, 2026
Merged

kevindb merged 7 commits into
mainfrom
phase-8-review

Conversation

@kevindb

@kevindb kevindb commented Oct 31, 2026

Copy link
Copy Markdown
Member

Phase 8 of docs/plans/modernization.md: an architecture and vulnerability review, CodeQL, a source metrics baseline, and the roadmap through the 4.x and 5.0 releases. It also closes out Phase 7.

Changes

  • Phase 7 closeout:
    • triage is marked completed.
    • The Phase 7 metrics column records 12 open issues and 3 open PRs after the posted closures.
  • Security review (docs/research/security-review.md):
    • Findings. Ranked findings for response handling, uploads, request construction and dependency exposure, each assigned to a phase.
    • target. The recommendation is a 4.x opt-in through dataFilter, with no default change in 5.0.
    • Fortify SCA: Code Injection .  #554. Resolved as a false positive.
    • 5.0 carry-overs. The exports map design (keeps the ADR-0001 dual surface and the 4.x deep paths) and the delegation-selector replacement.
    • Withheld. Four XSS findings are listed by area and severity only. Two of them were reported privately. Details will be published with the fixed 4.x release.
  • CodeQL (.github/workflows/codeql.yml): advanced setup with security-extended queries for src/ and the workflows. dist/, tests and docs are excluded. It runs on pushes and PRs to main, plus weekly.
  • Metrics:
    • npm run metrics (scripts/code-metrics.mjs) reports source lines, functions, cyclomatic complexity, nesting depth and the public API. It works on the working tree or any git ref, and formats with Prettier first so versions compare fairly.
    • docs/metrics.md gains v4.3.0 and Phase 8 baselines.
  • Roadmap (docs/plans/modernization.md):
    • Phase 9: coverage to 100%.
    • Phase 10: security and bug fixes.
    • Phase 11: 4.x cleanup and rearchitecture without breaking changes.
    • Then the 4.x release, Phase 12 (5.0) and 5.x.
    • Each phase records a before-and-after metrics column.

No source changes.

Already done on GitHub

Verification

  • npm test: 193 passed, 11 expected fail; coverage unchanged. The review's runtime claims were checked with throwaway probes (not committed) on jQuery 1.7.2, 3.7.1 and 4.0.0.
  • npm run metrics and npm run metrics -- v4.3.0 produce the recorded baselines.
  • CodeQL's first run is this PR's check.

🤖 Generated with Claude Code

Mark triage completed and record 12 open issues and 3 open PRs after the posted closures.
Scan src and the workflows with the security-extended queries; dist, tests and docs are excluded.
npm run metrics reports lines, functions, complexity and nesting for src or a git ref.
Ranked findings, the target recommendation and the 5.0 carry-overs; advisory details withheld until fixed.
Plan Phases 9-12 through the 4.x and 5.0 releases and record v4.3.0 and Phase 8 source metrics.
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

Library-input queries start from the package entry point, dist/jquery.form.js; skip only its duplicates.
Every dist build repeats the source's alerts; PR runs only report lines in the diff.
@kevindb
kevindb merged commit 27dc1b4 into main Oct 31, 2026
7 checks passed
@kevindb
kevindb deleted the phase-8-review branch October 31, 2026 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants