The load_yaml() convenience method on BaseScript should use SafeLoader #11028

Closed
opened 2025-12-29 21:39:20 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Apr 15, 2025).

Originally assigned to: @jeremystretch on GitHub.

Deployment Type

Self-hosted

NetBox Version

v4.2.7

Python Version

3.10

Steps to Reproduce

N/A

Expected Behavior

The load_yaml() method on BaseScript should use the SafeLoader class for safety.

Observed Behavior

The default Loader class is used.

Originally created by @jeremystretch on GitHub (Apr 15, 2025). Originally assigned to: @jeremystretch on GitHub. ### Deployment Type Self-hosted ### NetBox Version v4.2.7 ### Python Version 3.10 ### Steps to Reproduce N/A ### Expected Behavior The [`load_yaml()`](https://github.com/netbox-community/netbox/blob/44cb1a913957329c24554094b782b894a7410dec/netbox/extras/scripts.py#L527) method on BaseScript should use the SafeLoader class for safety. ### Observed Behavior The default Loader class is used.
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 21:39:20 +01:00
adam closed this issue 2025-12-29 21:39:21 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11028