Skip to content

Fix CodeQL security vulnerabilities in privacy module#2

Merged
hyperpolymath merged 1 commit into
mainfrom
claude/fix-codeql-security-issues-0117yqLQ3PPAL4ZDF5JsWiLh
Dec 7, 2025
Merged

Fix CodeQL security vulnerabilities in privacy module#2
hyperpolymath merged 1 commit into
mainfrom
claude/fix-codeql-security-issues-0117yqLQ3PPAL4ZDF5JsWiLh

Conversation

@hyperpolymath
Copy link
Copy Markdown
Owner

  • Fix polynomial regex vulnerability in src/privacy.js:213

    • Add input length limiting to prevent ReDoS attacks
    • Replace vulnerable email regex with bounded quantifiers
    • Add length limit to URL regex pattern
  • Fix insecure randomness in scripts/benchmark.js:29-30

    • Replace Math.random() with crypto.randomBytes()
    • Add secureRandomFloat() function for cryptographically secure random floats
  • Add explicit permissions to CI workflow

    • Set minimum required permissions (contents: read)
    • Follows GitHub security best practices

- Fix polynomial regex vulnerability in src/privacy.js:213
  - Add input length limiting to prevent ReDoS attacks
  - Replace vulnerable email regex with bounded quantifiers
  - Add length limit to URL regex pattern

- Fix insecure randomness in scripts/benchmark.js:29-30
  - Replace Math.random() with crypto.randomBytes()
  - Add secureRandomFloat() function for cryptographically secure random floats

- Add explicit permissions to CI workflow
  - Set minimum required permissions (contents: read)
  - Follows GitHub security best practices
@hyperpolymath hyperpolymath merged commit 69fd0e1 into main Dec 7, 2025
2 of 11 checks passed
@hyperpolymath hyperpolymath deleted the claude/fix-codeql-security-issues-0117yqLQ3PPAL4ZDF5JsWiLh branch December 7, 2025 18:40
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