{"id":"CVE-2025-23205","published":"2025-01-17T20:23:21Z","modified":"2025-02-06T21:29:22Z","title":"`frame-ancestors: self` grants all users access to formgrader in nbgrader","vendor":"jupyter","product":"nbgrader","tier":"tail","description":{"text":"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).","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0049,"percentile":0.43052,"provenance":"source"},"cwes":[{"id":"CWE-668","name":"Exposure of Resource to Wrong Sphere"}],"references":[{"url":"https://github.com/jupyter/nbgrader/security/advisories/GHSA-fcr8-4r9f-r66m","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jupyter/nbgrader/pull/1915","tags":["x_refsource_MISC"]},{"url":"https://github.com/jupyter/nbgrader/commit/73e137511ac1dc02e95790d4fd6d4d88dab42325","tags":["x_refsource_MISC"]},{"url":"https://jupyterhub.readthedocs.io/en/stable/explanation/websecurity.html#:~:text=frame-ancestors","tags":["x_refsource_MISC"]}],"priority":{"score":13.4,"factors":[{"name":"EPSS percentile","points":8.61},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"jupyter","affectedVersions":[{"vendor":"jupyter","product":"nbgrader","versions":["= 0.9.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-01-17T21:04:15.430636Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"nbgrader","vulnerableRanges":[">=0.9.4, <0.9.5"],"patched":["0.9.5"],"from":["GHSA-fcr8-4r9f-r66m","PYSEC-2026-1692"],"provenance":"source"}],"summary":{"text":"The flaw is in the nbgrader product's formgrader component, where setting the Content-Security-Policy frame-ancestors directive to 'self' allows formgrader pages to be embedded in frames on other pages, exposing its content to the wrong origin. An attacker who has a JupyterHub user account can exploit it by getting a user who has formgrader access to visit a crafted page, which requires user interaction and, under the default JupyterHub configuration with enable_subdomains set to False, lets the attacker's script read the formgrader content using the victim's credentials.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:42:19Z"},"euvd":{"id":"EUVD-2025-0110","exploited":false,"provenance":"source"}}