PyPI package intelligence

pyyaml — deep security report

ShadowCanopy's full breakdown of pyyaml on PyPI: verdict, AI analysis, dependency chain, network behavior, prebuilds, and obfuscated code.

Safe to use
Deep-scanned by ShadowCanopy — no threats found in its code, dependencies, or network behavior.
Scanned 11/26/2026
Approvedpyyaml@6.0.4View on registry ↗latest: 6.0.4

PyYAML 6.0.4 is the legitimate, widely-used YAML library. All 'obfuscated source' findings are false positives from legitimate Unicode line-break / whitespace constants (…, 
, 
, , etc.) required by the YAML spec; the code in emitter.py, reader.py, scanner.py, error.py and the test helper is ordinary, non-malicious parser logic.

Protect your projects free

AI breakdown

Plain-English summary of what this package does and how it behaves.

PyYAML is a YAML parser and emitter for Python, providing modules to load, dump, and manipulate YAML data.

Capabilities

  • Parses and emits YAML
  • Supports custom YAML constructors and representers
  • Includes optional C extension (_yaml)

Data access

  • Filesystem

Network

  • No network access observed

Widely used legitimate library with no scripts or dependencies; static findings flag multiple files as obfuscated source.

Security findings (5)

Static analysis rule matches, with the exact code that triggered them.

mediumObfuscated source fileATK-023lib/yaml/emitter.py

Multiple obfuscation patterns in lib/yaml/emitter.py

mediumObfuscated source fileATK-023lib/yaml/error.py

Multiple obfuscation patterns in lib/yaml/error.py

mediumObfuscated source fileATK-023lib/yaml/reader.py

Multiple obfuscation patterns in lib/yaml/reader.py

mediumObfuscated source fileATK-023lib/yaml/scanner.py

Multiple obfuscation patterns in lib/yaml/scanner.py

mediumObfuscated source fileATK-023tests/legacy_tests/canonical.py

Multiple obfuscation patterns in tests/legacy_tests/canonical.py

Package metadata

LicenseMIT

YAML parser and emitter for Python

Homepage ↗

Files in package (500)

CHANGESLICENSEMANIFEST.inMakefilePKG-INFOREADME.mdexamples/pygments-lexer/example.yamlexamples/pygments-lexer/yaml.pyexamples/yaml-highlight/yaml_hl.cfgexamples/yaml-highlight/yaml_hl.pylib/PyYAML.egg-info/PKG-INFOlib/PyYAML.egg-info/SOURCES.txtlib/PyYAML.egg-info/dependency_links.txtlib/PyYAML.egg-info/top_level.txtlib/_yaml/__init__.pylib/yaml/__init__.pylib/yaml/composer.pylib/yaml/constructor.pylib/yaml/cyaml.pylib/yaml/dumper.pylib/yaml/emitter.pylib/yaml/error.pylib/yaml/events.pylib/yaml/loader.pylib/yaml/nodes.pylib/yaml/parser.pylib/yaml/reader.pylib/yaml/representer.pylib/yaml/resolver.pylib/yaml/scanner.pylib/yaml/serializer.pylib/yaml/tokens.pypackaging/__pycache__/_pyyaml_pep517.cpython-315.pycpackaging/_pyyaml_pep517.pypackaging/build/libyaml.shpackaging/build/smoketest.pypyproject.tomlsetup.cfgsetup.pytests/legacy_tests/canonical.py

How ShadowCanopy checks PyPI packages

ShadowCanopy blocks every dependency by default and only lets through what it can verify — against live malicious-package advisories, an AI behavior scan, and a byte-for-byte hash check. It protects installs across npm, PyPI, crates.io, pkg.go.dev, RubyGems, Maven Central, NuGet, Packagist, Hex, pub.dev, Swift Package Manager.

Protect your projects freeSee what's being blocked

This report reflects ShadowCanopy's threat intelligence at page load and is informational, not a warranty. Canonical URL: https://shadowcanopy.dev/packages/pypi/pyyaml