# CVE-2026-52776: Trestle URLSecurityValidator SSRF allowlist bypass via IPv4-mapped IPv6 and 0.0.0.0

- Severity: High 8.6 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.49%, higher than 43% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-12T15:21:17.000Z
- Modified: 2026-09-09T21:09:13.080Z
- Also known as: GHSA-h47f-gmjp-m7rr, PYSEC-2026-3659
- Weaknesses: CWE-184, CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Compliance-trestle (Trestle) is a tooling platform for managing compliance as code. In versions before 3.12.4 and versions 4.0.0 through 4.0.3, the URLSecurityValidator that guards trestle's remote-fetch paths against server-side request forgery can be bypassed to reach loopback, link-local, cloud-metadata, and internal network endpoints it was designed to block. The blocklist does not canonicalize IPv4-mapped IPv6 literals such as [::ffff:169.254.169.254], which resolve to IPv6Address objects that never match the blocked IPv4 ranges, and it does not block the unspecified address 0.0.0.0, which routes to local services on Linux and inside containers. An attacker who can supply or influence an OSCAL artifact that trestle fetches, such as a malicious profile whose imports reference one of these bypass URLs, can cause the HTTPSFetcher and SFTPFetcher paths to contact cloud instance-metadata services, loopback interfaces, or internal hosts. This issue is fixed in versions 3.12.4 and 4.1.0.

(As written by CVE List.)

## Affected

- oscal-compass compliance-trestle: < 3.12.4; >= 4.0.0, < 4.1.0
- compliance-trestle (PyPI): before 4.1.0

## Every score

- GitHub_M: CVSS:4.0 8.6 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/oscal-compass/compliance-trestle/security/advisories/GHSA-h47f-gmjp-m7rr> (exploit, web)
- <https://github.com/oscal-compass/compliance-trestle/commit/5335ff873a2a68eb7de43df029bea09cadff22fd>
- <https://github.com/oscal-compass/compliance-trestle/commit/d107cd16efe8eb15d46be3c1d97f1ec73d32447c> (web)
- <https://github.com/oscal-compass/compliance-trestle> (package)
- <https://pypi.org/project/compliance-trestle> (package)
- <https://github.com/advisories/GHSA-h47f-gmjp-m7rr> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-52776> (advisory)

## Sources

- CVE List: [CVE-2026-52776](https://www.cve.org/CVERecord?id=CVE-2026-52776), CVE Terms of Use, modified 2026-08-26
- GitHub Advisory Database: [GHSA-h47f-gmjp-m7rr](https://github.com/advisories/GHSA-h47f-gmjp-m7rr), CC-BY-4.0, modified 2026-08-19
- NVD: [CVE-2026-52776](https://nvd.nist.gov/vuln/detail/CVE-2026-52776), Public domain, modified 2026-09-09
- PyPA Advisory Database: [PYSEC-2026-3659](https://osv.dev/vulnerability/PYSEC-2026-3659), CC-BY-4.0, modified 2026-08-19

---

Page: https://cve.day/CVE-2026-52776 · Whole record: https://cve.day/CVE-2026-52776.json · Rebuilt by cve.day 2026-11-25T22:59:35.324Z
