---
id: CVE-2025-23205
aliases:
  - GHSA-fcr8-4r9f-r66m
  - PYSEC-2026-1692
title: 'nbgrader''s `frame-ancestors: self` grants all users access to formgrader'
summary: 'nbgrader''s `frame-ancestors: self` grants all users access to formgrader'
severity: high
vendor: nbgrader
product: nbgrader
ecosystem: pip
affected:
  - 'nbgrader >= 0.9.4, < 0.9.5'
patched:
  - nbgrader 0.9.5
published: '2025-01-17'
updated: '2026-07-07'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-fcr8-4r9f-r66m'
references:
  - url: >-
      https://github.com/jupyter/nbgrader/security/advisories/GHSA-fcr8-4r9f-r66m
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-23205'
  - url: 'https://github.com/jupyter/nbgrader/pull/1915'
  - url: >-
      https://github.com/jupyter/nbgrader/commit/73e137511ac1dc02e95790d4fd6d4d88dab42325
  - url: 'https://github.com/jupyter/nbgrader'
  - url: 'https://jupyterhub.readthedocs.io/en/stable/explanation/websecurity.html'
tags:
  - osv
  - pip
epss: 0.0047
epssPercentile: 0.39844
ingestedAt: '2026-07-08T18:25:48.865Z'
---

## Overview

### Impact

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.

### Workarounds

- 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).

### References

JupyterHub documentation on why and when `frame-ancestors: self` is insecure, and why it was disabled by default: https://jupyterhub.readthedocs.io/en/stable/explanation/websecurity.html#:~:text=frame-ancestors

## Affected packages

- `nbgrader >= 0.9.4, < 0.9.5`

## Remediation

Upgrade to a patched release:

- `nbgrader 0.9.5`
