Skip to content

Draft: harden provider, HTTP body, and renderer boundaries - #22

Draft
lee3Q wants to merge 3 commits into
mainfrom
audit/security-ux-architecture-20261121
Draft

lee3Q wants to merge 3 commits into
mainfrom
audit/security-ux-architecture-20261121

Conversation

@lee3Q

@lee3Q lee3Q commented Nov 21, 2026

Copy link
Copy Markdown
Owner

Summary

This draft PR hardens Pullim's provider, HTTP body, and renderer boundaries based on the 2026-11-21 security review.

Confirmed findings fixed

  • Restrict OpenAI BYOK destinations to the official HTTPS v1 endpoint and preserve explicit loopback-only Ollama access.
  • Reject oversized JSON bodies at 1 MiB with bounded JSON 413 responses for both Content-Length and chunked requests.
  • Escape untrusted user, model, diagnostic, ladder, crisis, and journal values before HTML insertion.
  • Replace affected dynamic inline handlers with delegated data-action handling.

Verification

  • npm test passed with 57 tests.
  • npm run lint passed with zero warnings.
  • npm run build passed.
  • Focused raw HTTP checks passed for Content-Length overflow, chunked overflow, provider fallback, and post-overflow health.
  • Independent final re-review passed at commit 6ec4a13f1243ad4cf863355e5475681cd642b340.

Remaining scope

Browser execution, CSP, DNS rebinding after validation, reverse-proxy limits, deployment authentication, and live provider calls remain unverified. The detailed evidence is in docs/pr-draft-security-ux-architecture-20261121.md and the external audit report /home/lee3q/work/audit/pullim-final-re-review-20261121.md.

Rollback

Revert commits 1eed3570589770dcad9a53aca27baa8ce7bffed8 and 6ec4a13f1243ad4cf863355e5475681cd642b340 together if the audit branch must be rolled back. This reopens the reviewed findings.

@vercel

vercel Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
pullim Error Error Dec 2, 2026 7:13pm UTC

This branch had an error being deployed

1 failed deployment
Preview — e5043fd5 Deployed Dec 2, 2026 by vercel[bot]
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.

1 participant