GHSA-FCR8-4R9F-R66M
Vulnerability from github – Published: 2025-01-17 16:29 – Updated: 2025-01-17 21:56
VLAI?
Summary
nbgrader's `frame-ancestors: self` grants all users access to formgrader
Details
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
Severity ?
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "nbgrader"
},
"ranges": [
{
"events": [
{
"introduced": "0.9.4"
},
{
"fixed": "0.9.5"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.9.4"
]
}
],
"aliases": [
"CVE-2025-23205"
],
"database_specific": {
"cwe_ids": [
"CWE-1021",
"CWE-668"
],
"github_reviewed": true,
"github_reviewed_at": "2025-01-17T16:29:16Z",
"nvd_published_at": "2025-01-17T21:15:11Z",
"severity": "HIGH"
},
"details": "### Impact\n\nEnabling frame-ancestors: \u0027self\u0027 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`.\n\n#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\u0027s page is on the same Origin as the formgrader iframe, Javasript on Alice\u0027s page has _full access_ to the contents of the page served by formgrader using Bob\u0027s credentials.\n\n### Workarounds\n\n- Disable `frame-ancestors: self`, or\n- 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).\n\n### References\n\nJupyterHub 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",
"id": "GHSA-fcr8-4r9f-r66m",
"modified": "2025-01-17T21:56:51Z",
"published": "2025-01-17T16:29:16Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/jupyter/nbgrader/security/advisories/GHSA-fcr8-4r9f-r66m"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-23205"
},
{
"type": "WEB",
"url": "https://github.com/jupyter/nbgrader/pull/1915"
},
{
"type": "WEB",
"url": "https://github.com/jupyter/nbgrader/commit/73e137511ac1dc02e95790d4fd6d4d88dab42325"
},
{
"type": "PACKAGE",
"url": "https://github.com/jupyter/nbgrader"
},
{
"type": "WEB",
"url": "https://jupyterhub.readthedocs.io/en/stable/explanation/websecurity.html"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N",
"type": "CVSS_V4"
}
],
"summary": "nbgrader\u0027s `frame-ancestors: self` grants all users access to formgrader"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…