Skip to content
Heist/ feed
Back to feed
Medium

`frame-ancestors: self` grants all users access to formgrader in nbgrader

Type: advisorySources: OSV

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

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-23205
Confirmed fixed CVEs
Not specified
Updated in this feed
8 Nov 2026, 01:08 UTC · Revision 1

Source evidence

`frame-ancestors: self` grants all users access to formgrader in nbgrader

core-osv · Original source

Published 17 Jan 2025, 20:23 UTC

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

osv:CVE-2025-23205
Complete source record
{
  "id": "71b527602bc83c7ec32e36edf5581d6a87697d1a95b3459f64a42d86fbef5435",
  "url": "https://osv.dev/vulnerability/CVE-2025-23205",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "`frame-ancestors: self` grants all users access to formgrader in nbgrader",
    "summary": "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).",
    "evidence": "osv:CVE-2025-23205",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2025-23205",
      "aliases": [
        "CVE-2025-23205",
        "GHSA-fcr8-4r9f-r66m",
        "PYSEC-2026-1692"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/jupyter/nbgrader",
              "type": "GIT",
              "events": [
                {
                  "introduced": "c237114bfa189c4df0b113ba1aa172526f2525e2"
                },
                {
                  "fixed": "73e137511ac1dc02e95790d4fd6d4d88dab42325"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "= 0.9.4"
                      },
                      {
                        "last_affected": "= 0.9.4"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "fixed": "73e137511ac1dc02e95790d4fd6d4d88dab42325"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "= 0.9.4",
            "v0.9.4"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-23205.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:52.540951949Z",
      "provider": "osv",
      "references": [
        "https://jupyterhub.readthedocs.io/en/stable/explanation/websecurity.html#:~:text=frame-ancestors",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/23xxx/CVE-2025-23205.json",
        "https://github.com/jupyter/nbgrader/security/advisories/GHSA-fcr8-4r9f-r66m",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-23205",
        "https://github.com/jupyter/nbgrader/commit/73e137511ac1dc02e95790d4fd6d4d88dab42325",
        "https://github.com/jupyter/nbgrader/pull/1915"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-668"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/23xxx/CVE-2025-23205.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-23205",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 521209,
  "published_at": "2025-01-17T20:23:21.818+00:00"
}