RepoTrust

mitsuhiko/sloppy-xml-py

A Python library to parse malformed XML

https://github.com/mitsuhiko/sloppy-xml-py · commit 74a02907a402 · scored 2026-11-13 · scoring prov-4+qual-2+sec-2

RepoTrust ai badge RepoTrust quality badge RepoTrust security badge

Dispute this score or request a re-score Full report JSON

Scores

Pillar Score Signal Confidence Coverage
AI provenance (estimated AI-generated share) 0 possible 49% 100%
Code quality 71 adequate 90% 100%
Security 62 weak 85% 100%

AI provenance

Weak signals consistent with AI-assisted development.

Month Lines added Attributed to AI
2025-06 5,497 0%
2026-01 129 0%

Evidence

AI provenance describes how code was produced; it is not a quality judgment. Unless attribution is explicit, these are signals consistent with AI generation, not proof. Squash/rebase workflows, imported code, and rewritten history reduce accuracy.

Code quality

Code quality is adequate: test-to-source ratio 0.97, CI runs tests; 59% of function code in complex or long functions; 7% duplicated lines. Weakest area: complexity.

Area Score
Complexity (lizard) 17
Duplication 66
Code smells (Opengrep) 100
Tests and CI 100
Documentation 85
Type safety 40
Process (Scorecard review/maintenance) n/a

Most complex functions:

Security

Security posture is weak: 2 high-severity SAST findings; 7 high-severity workflow issues. Weakest area: posture.

Area Score
Secrets (gitleaks, tree + history) 100
Static analysis (Opengrep) 73
Vulnerable dependencies (OSV) n/a
CI workflows (zizmor) 26
Posture (policy, updates, signing, lockfiles) 0
OpenSSF Scorecard n/a

Top findings

Severity Finding Location
high opengrep/python.lang.security.use-defused-xml: The Python documentation recommends using defusedxml instead of xml because the native Python xml library is vulnerable to XML External Entity (XXE) attacks. These attacks can leak confidential data and "XML bombs" can cause denial of service. [confidence low] sloppy_xml.py:13
high opengrep/python.lang.security.use-defused-xml: The Python documentation recommends using defusedxml instead of xml because the native Python xml library is vulnerable to XML External Entity (XXE) attacks. These attacks can leak confidential data and "XML bombs" can cause denial of service. [confidence low] sloppy_xml.py:1194
high zizmor/unpinned-uses: unpinned action reference [confidence high] .github/workflows/release.yml:16
high zizmor/unpinned-uses: unpinned action reference [confidence high] .github/workflows/release.yml:19
high zizmor/unpinned-uses: unpinned action reference [confidence high] .github/workflows/release.yml:33
high zizmor/unpinned-uses: unpinned action reference [confidence high] .github/workflows/release.yml:36
high zizmor/cache-poisoning: runtime artifacts potentially vulnerable to a cache poisoning attack [confidence low] .github/workflows/release.yml:19
high zizmor/unpinned-uses: unpinned action reference [confidence high] .github/workflows/test.yml:17
high zizmor/unpinned-uses: unpinned action reference [confidence high] .github/workflows/test.yml:20
medium zizmor/artipacked: credential persistence through GitHub Actions artifacts [confidence low] .github/workflows/release.yml:16
medium zizmor/artipacked: credential persistence through GitHub Actions artifacts [confidence low] .github/workflows/test.yml:17
medium zizmor/excessive-permissions: overly broad permissions [confidence medium] .github/workflows/test.yml:10
info zizmor/superfluous-actions: action functionality is already included by the runner [confidence high] .github/workflows/release.yml:36

Static signals only: the scorer never runs the project's code. Secret findings are pattern matches that were not verified, and secret values are never stored.

Distribution signals

Signals consistent with a repository that exists to distribute a download. They are heuristics, not a verdict; release files were not downloaded or inspected.

Repository profile

Language Lines
Python 3,275

Embed a badge

Maintainers can show these in a README. Badges update when the repository is re-scored.

[![RepoTrust ai](https://repotrust.synapticcyber.com/badge/github.com/mitsuhiko/sloppy-xml-py/ai.svg)](https://repotrust.synapticcyber.com/r/github.com/mitsuhiko/sloppy-xml-py/)
[![RepoTrust quality](https://repotrust.synapticcyber.com/badge/github.com/mitsuhiko/sloppy-xml-py/quality.svg)](https://repotrust.synapticcyber.com/r/github.com/mitsuhiko/sloppy-xml-py/)
[![RepoTrust security](https://repotrust.synapticcyber.com/badge/github.com/mitsuhiko/sloppy-xml-py/security.svg)](https://repotrust.synapticcyber.com/r/github.com/mitsuhiko/sloppy-xml-py/)