Skip to content

Add a 'Security considerations' documentation page - #330

Merged
icemac merged 1 commit into
masterfrom
docs-security-considerations
Aug 27, 2026
Merged

Add a 'Security considerations' documentation page#330
icemac merged 1 commit into
masterfrom
docs-security-considerations

Conversation

@icemac

@icemac icemac commented Aug 26, 2026

Copy link
Copy Markdown
Member

Follow-up to a report that operator.attrgetter / itemgetter / methodcaller re-open the string.Formatter escape patched in 8.4 (CVE-2026-76825).

There is nothing to fix in the code: all of it requires a host-provided __import__, and any import policy permissive enough to reach operator already allows import os. So this documents the boundary instead.

Comment created by Claude

Explain that the guards only cover attribute access written in the
restricted source, and that providing an __import__ implementation hands
the security boundary to the import policy of the calling application.
@icemac icemac self-assigned this Aug 26, 2026
@icemac
icemac requested a review from dataflake August 26, 2026 07:24
@icemac
icemac merged commit 378ec42 into master Aug 27, 2026
26 checks passed
@icemac
icemac deleted the docs-security-considerations branch August 27, 2026 06:35
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.

2 participants