漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
Explicit organization scopes survive token refresh after membership ends
Vulnerability Description
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.
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.
This issue affects hex.pm: from 2025-10-10 before 2026-08-24.
CVSS Information
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
Vulnerability Type
不充分的会话过期机制
Vulnerability Title
hexpm 会话机制问题漏洞
Vulnerability Description
hexpm是hexpm组织的一个软件包托管服务器。 hexpm 2025-10-10至2026-08-24之前版本存在会话机制问题漏洞,该漏洞源于OAuth令牌刷新授权中会话过期不足,expand_repositories_scope/3仅重写字面量repositories作用域,显式授予的repository:<org>或docs:<org>作用域未修改,导致被从组织移除的用户仍可通过刷新令牌持续读取私有包。
CVSS Information
N/A
Vulnerability Type
N/A