[GH-ISSUE #8053] [Issue]: Harden regex safety checks for character imports and display scripts #7539

Closed
opened 2026-10-24 04:04:00 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8053

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Fix the two open CodeQL regex-injection reports (#659 and #660). The safety checker can evaluate unvalidated pattern fragments, and its repeated-alternative check misses overlapping literal and character-class alternatives.

Expected behavior

Safety checking must finish without executing an imported pattern. Ambiguous repeated alternatives must be rejected before import or display processing.

Actual behavior

Bounded local probes of main and staging confirm stalls during both safety evaluation and client display processing. Existing focused regressions pass without covering these cases.

Steps to reproduce

  1. Inspect code-scanning alerts 659 and 660 with repository security access.
  2. Run isolated, time-limited probes of the shared checker and imported-script display application.
  3. Observe both missing protections. Detailed inputs are retained in local proof scripts and the forthcoming regression coverage.

Environment

  • Marinara Engine version: main 457e827a; staging 010829b3
  • Install type: source
  • OS + version: macOS; version not recorded
  • Browser or app shell: Node execution of the actual client functions; live browser verification pending

Logs, screenshots, or video

Isolated child processes exceeded their 2–2.5 second deadlines.

Additional context

Owner: @SpicyMarinara, implemented by Codex at the maintainer's request for staging delivery and subsequent alert closure. Keep changes in shared safety analysis; client compilation caching remains owned by #8052.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Oct 22, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8053 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Fix the two open CodeQL regex-injection reports (#659 and #660). The safety checker can evaluate unvalidated pattern fragments, and its repeated-alternative check misses overlapping literal and character-class alternatives. ## Expected behavior Safety checking must finish without executing an imported pattern. Ambiguous repeated alternatives must be rejected before import or display processing. ## Actual behavior Bounded local probes of main and staging confirm stalls during both safety evaluation and client display processing. Existing focused regressions pass without covering these cases. ## Steps to reproduce 1. Inspect code-scanning alerts 659 and 660 with repository security access. 2. Run isolated, time-limited probes of the shared checker and imported-script display application. 3. Observe both missing protections. Detailed inputs are retained in local proof scripts and the forthcoming regression coverage. ## Environment - Marinara Engine version: main 457e827a; staging 010829b3 - Install type: source - OS + version: macOS; version not recorded - Browser or app shell: Node execution of the actual client functions; live browser verification pending ## Logs, screenshots, or video Isolated child processes exceeded their 2–2.5 second deadlines. ## Additional context Owner: @SpicyMarinara, implemented by Codex at the maintainer's request for staging delivery and subsequent alert closure. Keep changes in shared safety analysis; client compilation caching remains owned by #8052. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-24 04:04:00 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Oct 22, 2026):

Delivered to staging in PR #8055, merge 1a46e71852. All required checks, all platform jobs, and final-head Dottore Review passed (Viable; zero defects or notes). Both CodeQL analyses report zero results. Alerts #659 and #660 are dismissed as mitigated with explicit staging-fix notes; main awaits normal promotion. No open code-scanning alerts remain.

<!-- gh-comment-id:6340845146 --> @SpicyMarinara commented on GitHub (Oct 22, 2026): Delivered to staging in PR #8055, merge 1a46e71852d439b5fe60090fcfcbc0afa2eb1366. All required checks, all platform jobs, and final-head Dottore Review passed (Viable; zero defects or notes). Both CodeQL analyses report zero results. Alerts #659 and #660 are dismissed as mitigated with explicit staging-fix notes; main awaits normal promotion. No open code-scanning alerts remain.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#7539
No description provided.