Skip to content

Prevent internal exception details from reaching JavaScript - #7333

Open
danlapid wants to merge 1 commit into
mainfrom
dlapid/block-internal-exception-details
Open

Prevent internal exception details from reaching JavaScript#7333
danlapid wants to merge 1 commit into
mainfrom
dlapid/block-internal-exception-details

Conversation

@danlapid

Copy link
Copy Markdown
Collaborator

Reject diagnostic delimiters in tunneled exception messages, except for the internal-error reference marker. Log blocked exceptions and preserve embedded NULs so serialized errors cannot bypass the check.

Reword affected public validation messages and add regression tests. Apply the protection without a compatibility flag to avoid preserving disclosure of internal diagnostics.

Reject diagnostic delimiters in tunneled exception messages, except
for the internal-error reference marker. Log blocked exceptions and
preserve embedded NULs so serialized errors cannot bypass the check.

Reword affected public validation messages and add regression tests.
Apply the protection without a compatibility flag to avoid preserving
disclosure of internal diagnostics.
@danlapid
danlapid requested review from a team as code owners September 12, 2026 22:53
@github-actions

Copy link
Copy Markdown

The generated output of @cloudflare/workers-types has been changed by this PR. If this is intentional, run just generate-types to update the snapshot. Alternatively, you can download the full generated types:

Full Type Diff

@ask-bonk

ask-bonk Bot commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

@danlapid Bonk workflow was cancelled.

View workflow run · To retry, trigger Bonk again.

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