Skip to content

fix(web): avoid tainted PostHog log format#3834

Merged
RSO merged 1 commit into
mainfrom
fix/codeql-posthog-format-string-240
Jun 9, 2026
Merged

fix(web): avoid tainted PostHog log format#3834
RSO merged 1 commit into
mainfrom
fix/codeql-posthog-format-string-240

Conversation

@kilo-code-bot

@kilo-code-bot kilo-code-bot Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Use a literal console error message when PostHog feature flag payload parsing fails, keeping the externally controlled flag name in structured log metadata.
  • Resolves CodeQL alert 240 for js/tainted-format-string without changing feature flag parsing or Sentry capture behavior.

Verification

N/A - logging-only CodeQL remediation; no manual runtime flow exercised.

Visual Changes

N/A

Reviewer Notes

CodeQL alert: https://github.com/Kilo-Org/cloud/security/code-scanning/240

@kilo-code-bot
kilo-code-bot Bot requested a review from RSO June 9, 2026 09:32
@RSO
RSO merged commit 7fdd3f5 into main Jun 9, 2026
16 checks passed
@RSO
RSO deleted the fix/codeql-posthog-format-string-240 branch June 9, 2026 12:10
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