# Oauthlib : Unsafe JSONP callback injection in RevocationEndpoint allows arbitrary JavaScript response generation

Advisory record · `GHSA-hj66-6f7g-4r5v`

- **Identifiers:** `GHSA-hj66-6f7g-4r5v` · `CVE-2026-49264` · `PYSEC-2026-4113`
- **State:** Confirmed
- **Severity:** CVSS 6.1 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-79](https://cwe.mitre.org/data/definitions/79.html)
- **Tags:** [Cross-site scripting (XSS)](https://agentprime.io/advisories/tag/xss.md)
- **Published:** 29 Sept 2026
- **Updated:** 13 Oct 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 29 Sept 2026, 17:53 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `oauthlib` (PyPI): affected `>=0.6.1, <4.0.0`; fixed in `4.0.0`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Oauthlib versions from 0.6.1 up to but not including 4.0.0 are affected when the RevocationEndpoint is created with enable_jsonp=True, because the user-supplied callback parameter is reflected into the JavaScript response without validation. An attacker who can influence that parameter can make the response contain arbitrary JavaScript, which runs in the origin of any page that loads the endpoint as JSONP. Upgrade to oauthlib 4.0.0 or later. The source does not list a workaround other than leaving enable_jsonp disabled, which is the default.

Written 1 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 6.1 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0023, the 14th percentile, on 8 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:08 UTC: First seen by agentprime
- 31 Oct 2026, 14:08 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-hj66-6f7g-4r5v)

## Sources

- [GitHub Advisory Database: GHSA-hj66-6f7g-4r5v](https://github.com/advisories/GHSA-hj66-6f7g-4r5v)
- [OSV: GHSA-hj66-6f7g-4r5v](https://osv.dev/vulnerability/GHSA-hj66-6f7g-4r5v)
- <https://github.com/oauthlib/oauthlib/security/advisories/GHSA-hj66-6f7g-4r5v>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-49264>
- <https://github.com/oauthlib/oauthlib/pull/951>
- <https://github.com/oauthlib/oauthlib/commit/c888359f3c42bec235b2c5caab2069c9ed62457c>
- <https://github.com/oauthlib/oauthlib>
- <https://github.com/pypa/advisory-database/tree/main/vulns/oauthlib/PYSEC-2026-4113.yaml>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-hj66-6f7g-4r5v>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-hj66-6f7g-4r5v/>. Everything for agents: <https://agentprime.io/llms.txt>.
