Skip to content

security: add trusted_source warning for skopt.load() pickle deserialization#1

Open
dfgvaetyj3456356-hash wants to merge 2 commits into
masterfrom
security/trusted-source-for-skopt-load
Open

security: add trusted_source warning for skopt.load() pickle deserialization#1
dfgvaetyj3456356-hash wants to merge 2 commits into
masterfrom
security/trusted-source-for-skopt-load

Conversation

@dfgvaetyj3456356-hash
Copy link
Copy Markdown
Owner

This PR adds a trusted_source parameter and warning for skopt.load() to address pickle deserialization security concerns.

dfgvaetyj3456356-hash and others added 2 commits May 28, 2026 02:56
Adds validation to reject path traversal sequences (..) in the yml_path
parameter before opening the file. This prevents arbitrary file reads
when user-controlled input is passed to Space.from_yaml().
…ization

- joblib.load() uses pickle internally, enabling arbitrary code execution
- Add trusted_source=False parameter with RuntimeWarning
- Users must opt-in with trusted_source=True for untrusted files
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