Skip to content

Release 0.2.3 — CodeQL hardening + Node 24/v5 actions#6

Merged
biggest-littlest merged 3 commits into
mainfrom
dev
Jun 26, 2026
Merged

Release 0.2.3 — CodeQL hardening + Node 24/v5 actions#6
biggest-littlest merged 3 commits into
mainfrom
dev

Conversation

@scttbnsn

Copy link
Copy Markdown
Contributor

Promotes dev to main for 0.2.3.

  • 17 CodeQL high alerts resolved — exact-hostname URL checks (no bypassable includes), single-pass escaping (no double-decode), full tag-strip, https-validated logo src. 8 test-fixture alerts dismissed as 'used in tests'. 95/95 guard+parser tests green.
  • Actions → v5 + Node 24 — clears the Node-20 deprecation warning on the runners.

The CodeQL run on this PR re-scans the fixed files (expect the 17 to clear). The required structure-guards check must pass to merge.

CodesWhat added 3 commits June 26, 2026 16:25
actions/checkout@v4→v5, actions/setup-node@v4→v5, node-version 20→24 across
publish/ci/codeql. The v5 actions target Node 24 natively, so GitHub no longer
force-runs them on a deprecated Node-20 shim.
…ing)

- url-substring-sanitization: parse + exact hostname match (===/.endsWith) instead
  of bypassable url.includes("domain") — resume-parser, sourced-scanner,
  tracker-data, capture-search-sources (new hostnameMatches helper)
- double-escaping: single-pass replace in yaml.mjs unescape + sourced-scanner HTML
  entity decode (no cascade re-decode)
- incomplete-(multi-char-)sanitization: global/loop strip + escape the matched char
  ($&) — dashboard-data cleanContactName, packet, sourced-intake, sourced-delta
- bad-tag-filter: separate opening-tag attrs from content in the script-strip regex
- xss-through-dom: validate the logo base is an https URL before using it as img src

Dismissed 8 test-fixture alerts as 'used in tests'. 95/95 guard+parser tests green.
Security: 17 CodeQL high alerts resolved (URL/escape/XSS hardening) +
Actions bumped to v5 / Node 24 (clears the Node-20 deprecation).

@biggest-littlest biggest-littlest left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code-owner — 0.2.3 security.

@ALARGECOMPANY ALARGECOMPANY left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Second approval — 0.2.3.

/** Escape pipe characters inside a markdown table cell. */
function escapeCell(text) {
return String(text ?? "").replace(/\|/g, "\\|");
return String(text ?? "").replace(/\|/g, "\\$&");
export function htmlToText(html = "") {
return String(html)
.replace(/<script\b[\s\S]*?<\/script>/gi, " ")
.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi, " ")
@biggest-littlest biggest-littlest merged commit 8f3134a into main Jun 26, 2026
3 of 4 checks passed
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.

4 participants