CVE-2026-42049
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedjadx is a Dex to Java decompiler. Prior to 1.5.6, jadx inserts the android:versionName value from an AndroidManifest into the generated app/build.gradle Groovy template without proper sanitization when exporting a decompiled APK as an Android Gradle project. A malicious APK can break out of the string context so that opening or building the exported Gradle project executes attacker-controlled Groovy code on the victim machine. This issue is fixed in version 1.5.6.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · moderate confidencejadx before 1.5.6 is vulnerable to Groovy template injection when exporting decompiled APKs as Android Gradle projects. The android:versionName value from AndroidManifest is inserted into the generated app/build.gradle file without sanitization, allowing a malicious APK to break out of string context and execute arbitrary Groovy code on the victim's machine during project import or build.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Local
- Complexity
- Low
- Privileges
- None
- Authentication
- X
- User interaction
- A
- Scope
- X
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check jadx versionRun 'jadx --version' or check the jadx JAR/library version in your installation directory. Compare the version number to the affected range: versions before 1.5.6 are vulnerable.Affected if The installed jadx version is 1.5.5 or earlier.
-
Verify export to Gradle project feature usageCheck whether you have used jadx's export functionality to generate Android Gradle projects from decompiled APKs. Look for generated 'app/build.gradle' files in output directories.Affected if You have exported decompiled APKs as Android Gradle projects using a vulnerable jadx version.
-
Inspect generated build.gradle for unsanitized versionNameIf you have exported Gradle projects, open the generated app/build.gradle file and locate the 'versionName' property under the 'android { defaultConfig { ... } }' block.Affected if The versionName value contains unexpected characters, quotes, or Groovy syntax that was not in the original intended version string, indicating unsanitized insertion.
-
Review source APK AndroidManifest.xmlIf available, compare the android:versionName value in the original APK's AndroidManifest.xml to what appears in the generated build.gradle file.Affected if The versionName in build.gradle differs from or contains injection characters not present in the original AndroidManifest.xml versionName.
You are affected if jadx version is below 1.5.6 AND you have exported a decompiled APK as an Android Gradle project using a malicious APK that contains payload in the android:versionName field.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpgrade to jadx version 1.5.6 or later which implements proper sanitization. Avoid opening or processing untrusted APK files with vulnerable jadx versions until patched.
jadx 1.5.6
- Identify your current jadx installation method (e.g., downloaded binary, build from source, package manager)
- If using a downloaded binary, navigate to the official jadx GitHub releases page and download version 1.5.6 or later
- If using a package manager (e.g., Homebrew, Chocolatey), update the package to version 1.5.6 or latest available
- If building from source, checkout tag or branch for version 1.5.6 and rebuild
- Replace the old jadx executable with the updated version
- Verify the upgrade was successful by running 'jadx --version' and confirming it shows 1.5.6 or later
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation4.0 h
- Testing2.0 h
- Review / QA1.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,560.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-42049 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-42049 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data