Repository navigation
Conversation
The asciidoctor-pdf command line defaults to the unsafe safe mode, so RFD content could include:: arbitrary files (absolute or parent-relative paths) or point pdf-theme at a YAML file elsewhere on disk and have its contents embedded in the published PDF. The renderer also inherited the processor's full environment, including any configuration supplied through it. Run asciidoctor-pdf with `-S safe` and the render directory as the base dir so includes and relative images are jailed to it, lock the pdf-theme, pdf-themesdir and pdf-fontsdir attributes (asciidoctor-pdf does not jail them) so documents cannot override them, and pass the child only the environment variables needed to locate Ruby, Node and Chromium. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q5Ej2cHBc7wgaksc9BPkai
download_supporting_documents built each local path by removing every occurrence of `rfd/NNNN` from the repository path with str::replace. Neighbouring components could collapse into `..` (for example `rfd/0123/.rfd/0123./evil` became `../evil`), letting an RFD committer write arbitrary files outside the per-render temp directory when the UpdatePdfs action ran. Strip only the leading RFD directory, component by component, and skip any document whose remaining path is empty or contains anything other than normal components, so the joined path always stays under the render directory. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q5Ej2cHBc7wgaksc9BPkai
augustuswm
approved these changes
Nov 11, 2026
notpeter
deleted the
claude/claude-security-fix-find_011cgtdtpxvwsesmugbtmj9h-9r3prr
branch
November 12, 2026 11:16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Harden the handling of PDF generation with Ascii doctor on the server.
download_supporting_documentscould escape from within the rfd-specific working directory (e.g. via..in paths) so sanitize those paths first.🤖 Robot Voice:
Claude links (internal-only):