vcrpy is vulnerable to Deserialization of Untrusted Data
78
CVE Score
High
Deserialization of Untrusted Data
The vcrpy library loads YAML cassette files through PyYAML's full loader in vcr/serializers/yamlserializer.py and vcr/migration.py. A crafted cassette containing !!python/object/apply tags executes arbitrary Python code when loaded through VCR().use_cassette(), before any HTTP replay occurs. This can compromise CI runners and developer machines that load attacker-supplied cassettes from pull requests, shared fixture repositories, or poisoned artifacts. The fix uses a safe loader with an allowlist of benign constructors so dangerous Python object tags are rejected while legitimate cassettes continue to load.
Upgrade the vcrpy library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
0.0.1 - 8.2.0
Fixed in 8.2.1vcrpy is vulnerable to Deserialization of Untrusted Data in versions 0.0.1 - 8.2.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.