GHSA-7jvc-9xq8-frff

Suggest an improvement
Source
https://github.com/advisories/GHSA-7jvc-9xq8-frff
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-7jvc-9xq8-frff/GHSA-7jvc-9xq8-frff.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-7jvc-9xq8-frff
Aliases
Published
2026-11-18T20:43:43Z
Modified
2026-11-18T21:00:39Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
Outstatic: Authenticated GitHub REST proxy can send OAuth token to non-GitHub origins
Details

Impact

Outstatic’s authenticated GitHub REST proxy accepted an unvalidated endpoint parameter and constructed an upstream GitHub API URL by string concatenation while attaching the authenticated user’s GitHub OAuth token.

A user with access to the Outstatic dashboard could craft a request that caused the server to send their own GitHub OAuth token to a non-GitHub host. If that token was captured, it could be used to access GitHub resources available to that same user, including private repositories depending on granted scopes.

This does not allow unauthenticated attackers to access private repository data, and it does not directly expose another user’s GitHub token without an additional same-origin execution or request-forging primitive.

Patches

The issue has been patched by validating that proxied requests resolve to the exact https://api.github.com/ origin and by restricting forwarded request headers.

Users should upgrade to v2.2.1 or later.

Workarounds

If upgrading immediately is not possible, restrict access to /api/outstatic/github to trusted dashboard users only, or temporarily disable the endpoint if it is not needed.

As a temporary code-level mitigation, reject body-provided endpoint values that do not begin with /, verify the parsed URL origin is exactly https://api.github.com/, and block forwarding of sensitive headers such as Authorization, Host, and User-Agent.

Users who suspect their token was exposed should revoke the affected GitHub OAuth authorization and sign in again.

Database specific
{
    "cwe_ids":  [
        "CWE-918"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-11-18T20:43:43Z",
    "nvd_published_at":  null,
    "severity":  "MODERATE"
}
References

Affected packages

npm / outstatic

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
2.2.1

Database specific

last_known_affected_version_range
"<= 2.2.0"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-7jvc-9xq8-frff/GHSA-7jvc-9xq8-frff.json"