GHSA-fcr8-4r9f-r66m

Suggest an improvement
Source
https://github.com/advisories/GHSA-fcr8-4r9f-r66m
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/01/GHSA-fcr8-4r9f-r66m/GHSA-fcr8-4r9f-r66m.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-fcr8-4r9f-r66m
Aliases
Published
2025-01-17T16:29:16Z
Modified
2025-01-17T21:56:51Z
Severity
  • 8.6 (High) CVSS_V4 - 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 CVSS Calculator
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

Database specific
{
    "nvd_published_at": "2025-01-17T21:15:11Z",
    "cwe_ids": [
        "CWE-1021",
        "CWE-668"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2025-01-17T16:29:16Z"
}
References

Affected packages

PyPI / nbgrader

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0.9.4
Fixed
0.9.5

Affected versions

0.*

0.9.4