vcrpy is vulnerable to Deserialization of Untrusted Data
78
High Risk
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.
You are affected if you are using a version that falls within the vulnerable range.
vcrpy is vulnerable to Deserialization of Untrusted Data in versions 0.0.1 - 8.2.0.
Upgrade the vcrpy library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant