CVE-2020-1940 — oak-core
HIGHCVE-2020-1940 is a high-severity (CVSS 7.5) CWE-212 vulnerability in org.apache.jackrabbit:oak-core. A fix is available for org.apache.jackrabbit:oak-core — see the affected versions and patch details below.
Improper Removal of Sensitive Information Before Storage or Transfer in Apache Jackrabbit Oak
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
CVE-2020-1940 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.
Where this sits among everything scored
Of 385,738 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.
Real-World Exposure
org.apache.jackrabbit:oak-core☕org.apache.jackrabbit:oak-coreReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
The optional initial password change and password expiration features present in Apache Jackrabbit Oak 1.2.0 to 1.22.0 are prone to a sensitive information disclosure vulnerability. The code mandates the changed password to be passed as an additional attribute to the credentials object but does not remove it upon processing during the first phase of the authentication. In combination with additional, independent authentication mechanisms, this may lead to the new password being disclosed.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.apache.jackrabbit:oak-core | ≥ 1.12.0&&< 1.24.0 | 1.24.0org.apache.jackrabbit:oak-core:1.24.0 |
| ☕Maven | org.apache.jackrabbit:oak-core | ≥ 1.10.0&&< 1.10.8 | 1.10.8org.apache.jackrabbit:oak-core:1.10.8 |
Affected Products
jackrabbit oakapacheDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.apache.jackrabbit:oak-core, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.apache.jackrabbit:oak-core to 1.24.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2020-1940 is resolved across your whole dependency graph.
Workarounds
Assume what was exposed is already known: rotate any credential, token or key that the affected component could return, restrict the endpoint to callers that genuinely need it, and strip sensitive fields from responses and error output at the boundary rather than relying on the client not to read them.
Frequently Asked Questions
Is CVE-2020-1940 in your dependencies?
Find it across Maven, including transitive dependencies.