Skip to content
MediumVulnerability

CVE-2025-23205: nbgrader formgrader content extraction via malicious links

Identifier
CVE-2025-23205
Published
Record updated
View JSON
Affected
  • nbgrader = 0.9.4
Fixed in
0.9.5
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.5%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

CVE-2025-23205 affects nbgrader, a system for assigning and grading notebooks. Enabling frame-ancestors: 'self' (introduced by #1915) lets a JupyterHub user, Alice, craft a page that embeds formgrader in an IFrame, so when Bob visits it his credentials are sent and formgrader loads. Because the page shares an origin with the formgrader iframe, Alice's JavaScript gains full access to the content formgrader serves under Bob's credentials, which allows extraction of formgrader content; this applies at least under the default JupyterHub setting enable_subdomains = False.

Mitigation

Fixed in release 0.9.5, and all users are advised to upgrade. Users unable to upgrade may disable frame-ancestors: self, or set JupyterHub.enable_subdomains = True, which prevents the host page from accessing the contents of the frame even if embedding is allowed.