Skip to content

fix(security): 2 improvements across 2 files - #9417

Open
tomaioo wants to merge 2 commits into
acl-org:masterfrom
tomaioo:fix/security/unsafe-yaml-deserialization-using-yaml-l
Open

fix(security): 2 improvements across 2 files#9417
tomaioo wants to merge 2 commits into
acl-org:masterfrom
tomaioo:fix/security/unsafe-yaml-deserialization-using-yaml-l

Conversation

@tomaioo

@tomaioo tomaioo commented Aug 2, 2026

Copy link
Copy Markdown

Summary

fix(security): 2 improvements across 2 files

Problem

Severity: High | File: bin/split_venues.py:L17

The script uses yaml.load(f, Loader=Loader) where Loader is imported as CLoader. While CLoader is generally safer than the standard Loader, it is not a Safe Loader. Using yaml.load without explicitly specifying a Safe Loader can lead to arbitrary code execution if a malicious YAML file is processed. The code should use yaml.safe_load() or explicitly specify CSafeLoader.

Solution

Replace yaml.load(f, Loader=Loader) with yaml.safe_load(f) or ensure Loader is yaml.CSafeLoader.

Changes

  • bin/split_venues.py (modified)
  • bin/normalize_joint_yaml.py (modified)

tomaioo added 2 commits August 1, 2026 17:07
- Security: Unsafe YAML deserialization using yaml.load with CLoader
- Security: Unsafe YAML deserialization using yaml.load with CLoader

Signed-off-by: tomaioo <203048277+tomaioo@users.noreply.github.com>
- Security: Unsafe YAML deserialization using yaml.load with CLoader
- Security: Unsafe YAML deserialization using yaml.load with CLoader

Signed-off-by: tomaioo <203048277+tomaioo@users.noreply.github.com>
@nschneid

nschneid commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

@mjpost @mbollmann Should we just delete all the outdated scripts under bin/ that process the YAML files? Or archive them somewhere?

@nschneid

nschneid commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

#9419

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