# CVE-2026-48522: PyJWKClient: missing scheme allowlist enables SSRF + token forgery via file://, ftp://, data: schemes

- Priority: **Routine**
- Reason: Not severe (CVSS 4.2, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-05-28 · Modified: 2026-06-02
- Aliases: GHSA-993g-76c3-p5m4, PYSEC-2026-175, UBUNTU-CVE-2026-48522, DEBIAN-CVE-2026-48522, CGA-2798-3mpw-m73x, CGA-29w2-rj29-fmpw, CGA-2hfv-hrf4-hw63, CGA-35gq-c99h-43gp, CGA-3hq5-gfhx-vw87, CGA-4f79-v8cc-x4vm, CGA-4g2v-mj25-mq7w, CGA-5x5v-44qf-hvvj, CGA-64g3-c3q4-36h4, CGA-75h8-whgv-7v2f, CGA-787x-rjmf-m8q8, CGA-9839-h9w9-2jx8, CGA-9j22-x32g-h74w, CGA-9pwh-gcp4-6pg8, CGA-9wq4-3qwx-9r92, CGA-c69r-mccq-wqxp, CGA-crgp-c6rh-6cjf, CGA-f637-fqjf-vwjj, CGA-fggw-hmjr-fh4h, CGA-fxc5-pqmx-4r98, CGA-g2p8-x8xv-3hhq, CGA-h325-q7hm-f7jg, CGA-j7r2-c97r-jh95, CGA-m53v-6w2q-j98g, CGA-m639-qv8j-wrxr, CGA-pqq4-356v-wxrg, CGA-prj8-68hc-mw44, CGA-qhqw-wc25-553r, CGA-qr2f-wwgv-hvr7, CGA-v849-w9h3-8cfx, CGA-wvcv-p4rg-4r5v, CGA-22xv-mp52-x5g7, CGA-2652-hqj6-9h9c, CGA-26xh-p763-gp82, CGA-277r-5q8m-jgm2, CGA-27c3-hhq4-hvp3, CGA-299v-9php-prxc, CGA-2m2q-w377-q5p3, CGA-2vv8-45hh-48wf, CGA-2w87-67x4-vq65, CGA-3246-qcqc-4hr9, CGA-3h2r-96m6-f8pf, CGA-3jcw-g9rp-6m7w, CGA-3wvh-48p4-w7r5, CGA-439f-xqvp-qjp9, CGA-4g58-fv36-3jpp, CGA-4gfc-9r4c-gfq9, CGA-4p8h-qp6p-756r, CGA-4r38-qpg5-w9c9, CGA-4w6f-jxm6-rhp9, CGA-59p4-chhx-jq9j, CGA-5chj-94qm-3gmw, CGA-5g28-52mx-vmxg, CGA-5ghg-h4j3-x88x, CGA-5h2h-72pg-3r8x, CGA-5j79-3cm2-j7xm, CGA-6289-pjv3-7m8g, CGA-6c8r-8fgx-37pm, CGA-6g29-gvvp-mv2x, CGA-6w3w-qqr5-q6rm, CGA-6x2x-9v5j-m76v, CGA-7h58-pw92-wj6p, CGA-87j7-x28j-c72w, CGA-89xr-mh5m-cc39, CGA-8f93-6755-5w8m, CGA-8fmf-m9m2-3474, CGA-8jpj-wf65-7j8f, CGA-cfx6-63jg-crxj, CGA-cm76-mrmc-5q32, CGA-cmv2-36q9-29xr, CGA-cwmg-vm46-rm2r, CGA-cx2g-frqg-r4f5, CGA-f3mq-xp68-6grr, CGA-f458-qh7j-p5w4, CGA-f99h-5h93-62wq, CGA-ff3m-gm5w-36xj, CGA-fg6j-rc8r-wmm8, CGA-fvp7-cxhm-856r, CGA-fwfg-9wcr-92h2, CGA-g22m-3xwj-6c3g, CGA-g22p-wghm-mpxh, CGA-g3gp-7hj8-57pm, CGA-g5rw-3mr6-v69j, CGA-gghr-vgf5-64f7, CGA-ghm4-8gf5-r3p5, CGA-gmxv-9v7q-hf55, CGA-hmv3-9gvj-hw5q, CGA-hpc5-3ww3-q6fv, CGA-hr75-7hj2-gq4j, CGA-hv73-4jpw-hvmc, CGA-j6j6-5hvh-r74w, CGA-j8mw-j945-9x3m, CGA-j8vx-6wp4-x2jp, CGA-jmgq-6wvg-4jpc, CGA-jwrm-8pv6-93hr, CGA-m5r4-3h3f-c6gh, CGA-mhwg-m4c6-x546, CGA-mrxr-h984-wq8j, CGA-mw39-fp6m-j6h3, CGA-mwfm-f6j5-p8jv, CGA-mwmw-957m-xq2w, CGA-p364-q8pw-f88v, CGA-pv73-rw82-m7hj, CGA-pvf5-x45g-p6g3, CGA-q44h-78x5-73c5, CGA-q5pc-4x6r-8hj2, CGA-q8m4-w37f-847p, CGA-qhhj-36fh-3f94, CGA-qvjg-mxq8-3x8h, CGA-qwpp-9fph-qc5q, CGA-r7j4-pjgf-89pj, CGA-rc53-9h23-994f, CGA-rmhp-jqh7-w32m, CGA-vq7w-v958-m36f, CGA-vxxc-5r34-7mp7, CGA-w2mf-8j3q-jfcg, CGA-w669-24gw-359g, CGA-w763-mjfv-vpmw, CGA-wcxh-q344-9rqc, CGA-wgcq-9v75-xr29, CGA-wm7g-x3vm-9gv4, CGA-wr4w-jgqv-v69j, CGA-wrvf-6cww-47wg, CGA-x5vh-65g5-gm3w, CGA-xp3h-f5c3-85q5, CGA-xqxf-jpr5-6vc2, CGA-xrcx-gp94-75rf
- Record: https://cvemate.com/vulnerability/CVE-2026-48522 · JSON: https://cvemate.com/vulnerability/CVE-2026-48522/json

## Description

```text
PyJWT is a JSON Web Token implementation in Python. Prior to 2.13.0, PyJWKClient passes its uri argument directly to urllib.request.urlopen() which uses Python stdlib's default OpenerDirector registering HTTPHandler, HTTPSHandler, FTPHandler, FileHandler, and DataHandler. There is currently no documented option to restrict which schemes PyJWKClient will fetch. If an application's jku URL ingestion path accepts attacker-influenced URLs (e.g., from JWT header, configuration file, OAuth flow parameter), the attacker can cause PyJWKClient to read arbitrary local files via file:// (SSRF on local filesystem), cause PyJWKClient to attempt FTP / data-URI fetches (broader SSRF surface), or forge tokens that PyJWT verifies as valid. The library does not directly return non-HTTP(S) URI contents to the attacker; the chained "plant a JWKS to forge tokens" scenario described in the original report requires additional application-layer flaws (attacker write access to a filesystem path, untrusted jku derivation) that this fix does not address. This vulnerability is fixed in 2.13.0.
```

## Signals

- CVSS: 4.2 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
- EPSS: 0.214%, percentile 12.373%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 87)

- chainguard airflow-2 (Chainguard): \< 2.11.2-r25
- chainguard airflow-core-2 (Chainguard): \< 2.11.2-r10
- chainguard airflow-core-3 (Chainguard): \< 3.2.2-r5
- chainguard airflow-postgres-fips-3 (Chainguard): \< 3.2.2-r3
- chainguard awx (Chainguard): \< 24.6.1-r41
- chainguard datadog-agent-7.71-core-integrations (Chainguard): All versions (No fix recorded)
- chainguard datadog-agent-7.72-core-integrations (Chainguard): All versions (No fix recorded)
- chainguard datadog-agent-7.73-core-integrations (Chainguard): \< 7.73.3-r23
- chainguard datadog-agent-7.74-core-integrations (Chainguard): \< 7.74.1-r24
- chainguard datadog-agent-7.75-core-integrations (Chainguard): All versions (No fix recorded)
- chainguard datadog-agent-7.76 (Chainguard): All versions (No fix recorded) \| \< 7.76.3-r41
- chainguard datadog-agent-7.76-core-integrations (Chainguard): \< 7.76.3-r26
- chainguard datadog-agent-7.77-core-integrations (Chainguard): \< 7.77.3-r16
- chainguard datadog-agent-7.78-core-integrations (Chainguard): \< 7.78.4-r10
- chainguard datadog-agent-7.79-core-integrations (Chainguard): \< 7.79.2-r6
- chainguard datadog-agent-7.80-core-integrations (Chainguard): \< 7.80.4-r3
- chainguard datadog-agent-fips-7.71-core-integrations (Chainguard): All versions (No fix recorded)
- chainguard datadog-agent-fips-7.72-core-integrations (Chainguard): All versions (No fix recorded)
- chainguard datadog-agent-fips-7.73-core-integrations (Chainguard): \< 7.73.3-r21
- chainguard datadog-agent-fips-7.74-core-integrations (Chainguard): \< 7.74.1-r26

## References

- <https://github.com/jpadilla/pyjwt/security/advisories/GHSA-993g-76c3-p5m4>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-48522>
- <https://github.com/github/advisory-database/pull/8521>
- <https://github.com/jpadilla/pyjwt>
- <https://github.com/pypa/advisory-database/tree/main/vulns/pyjwt/PYSEC-2026-175.yaml>
- <https://ubuntu.com/security/CVE-2026-48522>
- <https://www.cve.org/CVERecord?id=CVE-2026-48522>
- <https://github.com/jpadilla/pyjwt/commit/95791b1759b8aa4f2203575d344d5c78564cdc81>
- <https://ubuntu.com/security/notices/USN-8823-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-48522>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/48xxx/CVE-2026-48522.json>

---

Data as of 2026-12-05T07:16:01.700Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
