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: n/a
EPSS: n/a
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. Based on the description, the likely attack vector is any pathway that allows an attacker to supply JSON to the server – for example, HTTP request bodies, API payloads, or file uploads. No additional prerequisites such as elevated privileges are required; the vulnerability exists purely at deserialization time.

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 not provided in the public data, 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. EPSS information is unavailable, so the exact probability of exploitation cannot be quantified. 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 19, 2026 at 12:52 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 19, 2026 at 12:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

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

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: apache

Published:

Updated: 2026-10-19T10:36:41.781Z

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

Link: CVE-2026-71253

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

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

Link: CVE-2026-71253

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-19T13:00:15Z

Weaknesses
  • CWE-470

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