Skip to content

fix(siwe): reject a line break in createSiweMessage requestId - #5580

Merged
jxom merged 3 commits into
mainfrom
fix/siwe-request-id-line-break
Nov 18, 2026
Merged

jxom merged 3 commits into
mainfrom
fix/siwe-request-id-line-break

Conversation

@jxom

@jxom jxom commented Nov 18, 2026

Copy link
Copy Markdown
Member

Supersedes #5559 by @pucedoteth, keeping their commit.

  • Reject a lone \r in requestId as well as \n (/[\r\n]/), with a test case; the error now says "must not include a line break".
  • Shortened the changeset to one sentence.

pucedoteth and others added 3 commits November 18, 2026 07:05
`createSiweMessage` validated every field except `requestId`. A line
break in it started a new field, so a request ID could append lines
such as a `Resources` section to the message the user signs, and
`parseSiweMessage` read them back as resources. Reject it like a line
break in `statement`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01L75E8Ap183JW1mDfv8arqR
@changeset-bot

changeset-bot Bot commented Nov 18, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8fd6699

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
viem Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
viem Error Error Nov 18, 2026 8:23pm UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T20:21:15.721415Z 8fd6699 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

Published [email protected] under the pr-5580 dist-tag, which follows this pull request until it closes.

pnpm add viem@pr-5580
pnpm add [email protected]

@jxom
jxom merged commit 8a2bf7b into main Nov 18, 2026
39 of 40 checks passed
@jxom
jxom deleted the fix/siwe-request-id-line-break branch November 18, 2026 21:15
@github-actions github-actions Bot mentioned this pull request Nov 18, 2026

This branch had an error being deployed

1 failed deployment
Preview — 8fd66995 Deployed Nov 18, 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.

3 participants