← ALL FINDINGS
BG-004 · requirements.txt:7
Vulnerable Dependency
HIGH✓ FIXED
Vulnerability description
Pinned dependency version is affected by a published remote code execution advisory.
Security impact
A crafted YAML payload processed by the pinned library version can execute arbitrary code on the server.
Recommended remediation
Upgrade to a patched release and pin the minimum safe version in the lockfile.
Fix
Before
pyyaml==5.3.1
After
pyyaml==6.0.2
Regression test
test_dependency_audit_has_no_known_cves
def test_dependency_audit_has_no_known_cves():
report = pip_audit("requirements.txt")
assert report.critical == 0 and report.high == 0Affected file
requirements.txt
Line 7
Affected code path
requirements.txt → pyyaml 5.3.1 → yaml.load() in importer.py
Verification result
- ✓Regression test generated
- ✓Test passed
- ✓Fix verified