# CVE-2025-23205: `frame-ancestors: self` grants all users access to formgrader in nbgrader

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:N/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)
- Published: 2025-01-17T16:29:16.000Z
- Modified: 2026-07-07T17:56:43.444Z
- Also known as: GHSA-fcr8-4r9f-r66m, PYSEC-2026-1692
- Weaknesses: CWE-668, CWE-1021
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

nbgrader is a system for assigning and grading notebooks. Enabling frame-ancestors: 'self' grants any JupyterHub user the ability to extract formgrader content by sending malicious links to users with access to formgrader, at least when using the default JupyterHub configuration of `enable_subdomains = False`. #1915 disables a protection which would allow user Alice to craft a page embedding formgrader in an IFrame. If Bob visits that page, his credentials will be sent and the formgrader page loaded. Because Alice's page is on the same Origin as the formgrader iframe, Javasript on Alice's page has _full access_ to the contents of the page served by formgrader using Bob's credentials. This issue has been addressed in release 0.9.5 and all users are advised to upgrade. Users unable to upgrade may disable `frame-ancestors: self`, or enable per-user and per-service subdomains with `JupyterHub.enable_subdomains = True` (then even if embedding in an IFrame is allowed, the host page does not have access to the contents of the frame).

(As written by CVE List.)

## Affected

- jupyter nbgrader: = 0.9.4
- nbgrader (PyPI): from 0.9.4 before 0.9.5

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/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:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/jupyter/nbgrader/security/advisories/GHSA-fcr8-4r9f-r66m> (web)
- <https://github.com/jupyter/nbgrader/pull/1915> (web)
- <https://github.com/jupyter/nbgrader/commit/73e137511ac1dc02e95790d4fd6d4d88dab42325> (web)
- <https://jupyterhub.readthedocs.io/en/stable/explanation/websecurity.html#:~:text=frame-ancestors>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-23205> (advisory)
- <https://github.com/jupyter/nbgrader> (package)
- <https://jupyterhub.readthedocs.io/en/stable/explanation/websecurity.html> (web)
- <https://pypi.org/project/nbgrader> (package)
- <https://github.com/advisories/GHSA-fcr8-4r9f-r66m> (advisory)

## Sources

- CVE List: [CVE-2025-23205](https://www.cve.org/CVERecord?id=CVE-2025-23205), CVE Terms of Use, modified 2025-02-06
- GitHub Advisory Database: [GHSA-fcr8-4r9f-r66m](https://github.com/advisories/GHSA-fcr8-4r9f-r66m), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-23205](https://nvd.nist.gov/vuln/detail/CVE-2025-23205), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1692](https://osv.dev/vulnerability/PYSEC-2026-1692), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-23205 · Whole record: https://cve.day/CVE-2025-23205.json · Rebuilt by cve.day 2026-11-25T22:58:53.416Z
