Description
Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') vulnerability in Apache Johnzon.



ClassConverter loads & static-initializes an attacker-named class from untrusted JSON.




This issue affects Apache Johnzon: from 1.0.0 before 2.2.0.



Users are recommended to upgrade to version 1.3.1 (javax namespace) or 2.2.0 (jakarta specification namespace), which fixes the issue.
Published: 2026-10-19
Score: 9.8 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

Apache Johnzon’s JSON parsing engine includes a class converter that, when encountering a class name supplied in an untrusted JSON payload, will load that class and execute its static initializer. This unsafe use of reflection is a classic example of externally controlled input selecting arbitrary classes (CWE-470). The ability to trigger static initialization allows an attacker to execute code within the context of the application without needing to upload or deploy new modules. Affected systems can lose confidentiality, integrity, and availability because executing a batch of arbitrary Java bytecode can modify data, exfiltrate information, or shut down services. The impact is severe: any component that accepts JSON from an untrusted source and uses Johnzon for deserialization is potentially vulnerable.

Affected Systems

All installations of Apache Johnzon with a version prior to 2.2.0 are affected, including the 1.x series. The vendor recommends upgrading to version 1.3.1 (for the javax namespace) or to 2.2.0 (for the jakarta specification namespace). No other products outside Apache Johnzon are listed as impacted.

Risk and Exploitability

The CVSS score is 9.8, indicating a critical severity, but the vulnerability allows execution of arbitrary code with the privileges of the application process. The likely attack vector is any path that allows an attacker to supply JSON to the server, such as HTTP request bodies, API payloads, or file uploads. The EPSS score is < 1%, indicating a very low probability of exploitation. The vulnerability is not listed in CISA’s KEV catalog, indicating that no confirmed public exploits are currently known. However, because the flaw hinges on untrusted input, it remains a high‑risk exposure for applications that expose JSON endpoints or import data from untrusted sources.

Generated by OpenCVE AI on October 22, 2026 at 20:46 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache Johnzon to v1.3.1 or v2.2.0, depending on the namespace used by the application. The patch disables unsafe class resolution during JSON conversion.
  • Validate all incoming JSON to ensure that posted data originates from trusted sources and does not contain unexpected class names. This can be implemented by configuring a whitelist of acceptable JSON schemas or by rejecting payloads that include class name fields.
  • Where possible, restrict the classpath of the Java application to contain only the classes required for normal operation, limiting the classes that could be loaded by the converter.

Generated by OpenCVE AI on October 22, 2026 at 20:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 21 Oct 2026 02:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 20 Oct 2026 21:00:00 +0000

Type Values Removed Values Added
First Time appeared Apache
Apache johnzon
Vendors & Products Apache
Apache johnzon

Tue, 20 Oct 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Tue, 20 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Important


Mon, 19 Oct 2026 11:00:00 +0000

Type Values Removed Values Added
Description Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') vulnerability in Apache Johnzon. ClassConverter loads & static-initializes an attacker-named class from untrusted JSON. This issue affects Apache Johnzon: from 1.0.0 before 2.2.0. Users are recommended to upgrade to version 1.3.1 (javax namespace) or 2.2.0 (jakarta specification namespace), which fixes the issue.
Title Apache Johnzon: ClassConverter loads & static-initializes an attacker-named class from untrusted JSON
Weaknesses CWE-470
References

cve-icon MITRE

Status: PUBLISHED

Assigner: apache

Published:

Updated: 2026-10-20T19:34:25.835Z

Reserved: 2026-08-05T11:38:30.610Z

Link: CVE-2026-71253

cve-icon Vulnrichment

Updated: 2026-10-20T19:34:22.369Z

cve-icon NVD

Status : Deferred

Published: 2026-10-19T11:17:18.540

Modified: 2026-10-20T20:17:24.763

Link: CVE-2026-71253

cve-icon Redhat

Severity : Important

Publid Date: 2026-10-19T10:36:41Z

Links: CVE-2026-71253 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-22T21:00:08Z

Weaknesses
  • CWE-470

    Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')