fix: address Codex Security findings - #17
Merged
Merged
Conversation
lperezmo
marked this pull request as ready for review
August 12, 2026 04:28
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.
Summary
Addresses all three validated findings from Codex Security scan
dd7075a0-84c9-4c55-8475-9f72d3ac9e5c:PathLikecapability and bound local readsRoot causes
The carousel overloaded ordinary strings as both browser image references and implicit server-file capabilities, then read matching files without a byte limit. The automated release workflow executed build dependencies inside the same job that held PyPI OIDC and repository-write permissions. The PIN showcase reused plaintext round-trip output for credential-like modes.
Impact
String carousel sources are now always browser references. Applications that intentionally inline a local image should pass
pathlib.Pathor anotheros.PathLike; local images are limited to 10 MiB each and 20 MiB per render.The release artifact is built once without elevated permissions, uploaded to GitHub in a contents-write-only job, and published from an OIDC-only job. Masked PIN and OTP demos now expose only completion counts.
Validation
10 passedfocused security tests56 passed, 64 deselectedfull non-browser Python suiteruff check .git diff --check