{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-75554",
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "state": "PUBLISHED",
        "assignerShortName": "EEF",
        "dateReserved": "2026-08-18T06:00:02.163Z",
        "datePublished": "2026-08-24T20:15:05.791Z",
        "dateUpdated": "2026-08-24T20:15:05.791Z"
    },
    "containers": {
        "cna": {
            "affected": [
                {
                    "collectionURL": "https://hex.pm",
                    "cpes": [
                        "cpe:2.3:a:hexpm:hexpm:*:*:*:*:*:*:*:*"
                    ],
                    "defaultStatus": "unaffected",
                    "modules": [
                        "'Elixir.Hexpm.Permissions'",
                        "'Elixir.Hexpm.OAuth.Tokens'",
                        "'Elixir.HexpmWeb.API.OAuthController'"
                    ],
                    "packageName": "hex.pm",
                    "product": "hexpm",
                    "programFiles": [
                        "lib/hexpm/permissions.ex",
                        "lib/hexpm/oauth/tokens.ex",
                        "lib/hexpm_web/controllers/api/oauth_controller.ex"
                    ],
                    "programRoutines": [
                        {
                            "name": "'Elixir.Hexpm.Permissions':expand_repositories_scope/2"
                        },
                        {
                            "name": "'Elixir.Hexpm.OAuth.Tokens':create_for_user/6"
                        },
                        {
                            "name": "'Elixir.HexpmWeb.API.OAuthController':handle_refresh_token_grant/2"
                        }
                    ],
                    "vendor": "hexpm",
                    "versions": [
                        {
                            "lessThan": "2026-08-24",
                            "status": "affected",
                            "version": "2025-10-10",
                            "versionType": "date"
                        }
                    ]
                },
                {
                    "collectionURL": "https://github.com",
                    "cpes": [
                        "cpe:2.3:a:hexpm:hexpm:*:*:*:*:*:*:*:*"
                    ],
                    "defaultStatus": "unaffected",
                    "modules": [
                        "'Elixir.Hexpm.Permissions'",
                        "'Elixir.Hexpm.OAuth.Tokens'",
                        "'Elixir.HexpmWeb.API.OAuthController'"
                    ],
                    "packageName": "hexpm/hexpm",
                    "packageURL": "pkg:github/hexpm/hexpm",
                    "product": "hexpm",
                    "programFiles": [
                        "lib/hexpm/permissions.ex",
                        "lib/hexpm/oauth/tokens.ex",
                        "lib/hexpm_web/controllers/api/oauth_controller.ex"
                    ],
                    "programRoutines": [
                        {
                            "name": "'Elixir.Hexpm.Permissions':expand_repositories_scope/2"
                        },
                        {
                            "name": "'Elixir.Hexpm.OAuth.Tokens':create_for_user/6"
                        },
                        {
                            "name": "'Elixir.HexpmWeb.API.OAuthController':handle_refresh_token_grant/2"
                        }
                    ],
                    "repo": "https://github.com/hexpm/hexpm",
                    "vendor": "hexpm",
                    "versions": [
                        {
                            "lessThan": "50cffd206490c49c92d7b63c8505949682abedb0",
                            "status": "affected",
                            "version": "650faa03af511e74c1b3b49ec12d35666b6984c4",
                            "versionType": "git"
                        }
                    ]
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "type": "finder",
                    "value": "Eric Meadows-Jönsson"
                },
                {
                    "lang": "en",
                    "type": "remediation developer",
                    "value": "Eric Meadows-Jönsson"
                },
                {
                    "lang": "en",
                    "type": "coordinator",
                    "value": "Jonatan Männchen / EEF"
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "supportingMedia": [
                        {
                            "base64": false,
                            "type": "text/html",
                            "value": "<p>Insufficient Session Expiration vulnerability in the OAuth token refresh grant in hexpm hexpm allows a user removed from an organization to keep reading its private packages.</p>\n<p><code>expand_repositories_scope/3</code> in <code>lib/hexpm/permissions.ex</code> only rewrites the literal <code>repositories</code> scope, so an explicitly granted <code>repository:&lt;org&gt;</code> or <code>docs:&lt;org&gt;</code> scope passes through it untouched. The refresh grant re-derives a new token from the stored <code>granted_scopes</code>, which holds that expanded form, so every refresh reproduces the organization scope without revisiting membership. Because both CDN edges authorize repository access from the token claim without querying the database, an account removed from an organization retains read access for as long as it keeps refreshing, bounded by the 30 day refresh token lifetime rather than the 30 minute access token lifetime.</p>\n<p>This issue affects hex.pm: from 2025-10-10 before 2026-08-24.</p>"
                        },
                        {
                            "base64": false,
                            "type": "text/markdown",
                            "value": "Insufficient Session Expiration vulnerability in the OAuth token refresh grant in hexpm hexpm allows a user removed from an organization to keep reading its private packages.\n\n`expand_repositories_scope/3` in `lib/hexpm/permissions.ex` only rewrites the literal `repositories` scope, so an explicitly granted `repository:<org>` or `docs:<org>` scope passes through it untouched. The refresh grant re-derives a new token from the stored `granted_scopes`, which holds that expanded form, so every refresh reproduces the organization scope without revisiting membership. Because both CDN edges authorize repository access from the token claim without querying the database, an account removed from an organization retains read access for as long as it keeps refreshing, bounded by the 30 day refresh token lifetime rather than the 30 minute access token lifetime.\n\nThis issue affects hex.pm: from 2025-10-10 before 2026-08-24."
                        }
                    ],
                    "value": "Insufficient Session Expiration vulnerability in the OAuth token refresh grant in hexpm hexpm allows a user removed from an organization to keep reading its private packages.\n\nexpand_repositories_scope/3 in lib/hexpm/permissions.ex only rewrites the literal repositories scope, so an explicitly granted repository:<org> or docs:<org> scope passes through it untouched. The refresh grant re-derives a new token from the stored granted_scopes, which holds that expanded form, so every refresh reproduces the organization scope without revisiting membership. Because both CDN edges authorize repository access from the token claim without querying the database, an account removed from an organization retains read access for as long as it keeps refreshing, bounded by the 30 day refresh token lifetime rather than the 30 minute access token lifetime.\n\nThis issue affects hex.pm: from 2025-10-10 before 2026-08-24."
                }
            ],
            "impacts": [
                {
                    "capecId": "CAPEC-122",
                    "descriptions": [
                        {
                            "lang": "en",
                            "value": "CAPEC-122 Privilege Abuse"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV4_0": {
                        "Automatable": "NOT_DEFINED",
                        "Recovery": "NOT_DEFINED",
                        "Safety": "NOT_DEFINED",
                        "attackComplexity": "LOW",
                        "attackRequirements": "PRESENT",
                        "attackVector": "NETWORK",
                        "baseScore": 2.3,
                        "baseSeverity": "LOW",
                        "privilegesRequired": "LOW",
                        "providerUrgency": "NOT_DEFINED",
                        "subAvailabilityImpact": "NONE",
                        "subConfidentialityImpact": "LOW",
                        "subIntegrityImpact": "NONE",
                        "userInteraction": "NONE",
                        "valueDensity": "NOT_DEFINED",
                        "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N",
                        "version": "4.0",
                        "vulnAvailabilityImpact": "NONE",
                        "vulnConfidentialityImpact": "LOW",
                        "vulnIntegrityImpact": "NONE",
                        "vulnerabilityResponseEffort": "NOT_DEFINED"
                    },
                    "format": "CVSS",
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "GENERAL"
                        }
                    ]
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-613",
                            "description": "CWE-613 Insufficient Session Expiration",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
                "shortName": "EEF",
                "dateUpdated": "2026-08-24T20:15:05.791Z"
            },
            "references": [
                {
                    "tags": [
                        "vendor-advisory",
                        "related"
                    ],
                    "url": "https://github.com/hexpm/hexpm/security/advisories/GHSA-24ww-j3f4-p49c"
                },
                {
                    "tags": [
                        "related"
                    ],
                    "url": "https://cna.erlef.org/cves/CVE-2026-75554.html"
                },
                {
                    "tags": [
                        "related"
                    ],
                    "url": "https://osv.dev/vulnerability/EEF-CVE-2026-75554"
                },
                {
                    "tags": [
                        "patch"
                    ],
                    "url": "https://github.com/hexpm/hexpm/commit/50cffd206490c49c92d7b63c8505949682abedb0"
                }
            ],
            "source": {
                "discovery": "INTERNAL"
            },
            "title": "Explicit organization scopes survive token refresh after membership ends"
        }
    }
}