nbgrader
Affected
- introduced
0.9.4, fixed0.9.5(ecosystem)
Fixed versions
0.9.5
Fix
- Fixed version
0.9.5pip install --upgrade nbgrader==0.9.5
Advisory
Also known as: CVE-2025-23205, GHSA-fcr8-4r9f-r66m
nbgrader's frame-ancestors: self grants all users access to formgrader
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
frame-ancestors: self, orJupyterHub.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
Not rated by the source.
0.9.4, fixed 0.9.5 (ecosystem)0.9.5
0.9.5pip install --upgrade nbgrader==0.9.5Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: PyPA Advisory Database · CC BY 4.0