Is org.apache.httpcomponents:httpclient 4.2 vulnerable?

Maven · 7 releases from 4.2.0 to 4.2.6 · latest org.apache.httpcomponents:httpclient is 4.5.14 · checked 18 Nov 2026

Yes: 3 known advisories

Yes. org.apache.httpcomponents:httpclient 4.2.6, the last 4.2 release, is affected by 3 known security advisories (3 medium), including CVE-2020-13956, CVE-2015-5262, CVE-2014-3577. 1 more affects earlier 4.2.x releases. Upgrade to 4.5.13 or later to fix all of them.

Upgrade with:mvn versions:use-dep-version -Dincludes=org.apache.httpcomponents:httpclient -DdepVersion=4.5.13 -DforceVersion=true

Is your project on an affected org.apache.httpcomponents:httpclient?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Advisories affecting org.apache.httpcomponents:httpclient 4.2.6

  • MediumCVE-2020-13956GHSA-7r82-7xv7-xcpj3 Jun 2021

    Cross-site scripting in Apache HttpClient

    Affected
    <4.5.13 · >=5.0.0 <5.0.3
    Fixed in
    4.5.13, 5.0.3
  • MediumCVE-2015-5262GHSA-fmj5-wv96-r2ch17 Oct 2018

    Denial of service vulnerability in org.apache.httpcomponents:httpclient

    Affected
    <4.3.6
    Fixed in
    4.3.6
  • MediumCVE-2014-3577GHSA-cfh5-3ghh-wfjx17 Oct 2018

    Improper Verification of Cryptographic Signature in org.apache.httpcomponents:httpclient

    Affected
    <4.3.5
    Fixed in
    4.3.5

Fixed within 4.2.x, affecting earlier releases

  • HighCVE-2012-6153GHSA-2x83-r56g-cv4717 Oct 2018

    Improper certificate validation in org.apache.httpcomponents:httpclient

    Affected
    <4.2.3
    Fixed in
    4.2.3

Every org.apache.httpcomponents:httpclient 4.2.x release

Affected: 4.2.0 to 4.2.6. Latest org.apache.httpcomponents:httpclient: 4.5.14.

VersionKnown advisories
org.apache.httpcomponents:httpclient 4.2.6CVE-2020-13956, CVE-2015-5262, CVE-2014-3577
org.apache.httpcomponents:httpclient 4.2.5CVE-2020-13956, CVE-2015-5262, CVE-2014-3577
org.apache.httpcomponents:httpclient 4.2.4CVE-2020-13956, CVE-2015-5262, CVE-2014-3577
org.apache.httpcomponents:httpclient 4.2.3CVE-2020-13956, CVE-2015-5262, CVE-2014-3577
org.apache.httpcomponents:httpclient 4.2.2CVE-2020-13956, CVE-2015-5262, CVE-2012-6153, CVE-2014-3577
org.apache.httpcomponents:httpclient 4.2.1CVE-2020-13956, CVE-2015-5262, CVE-2012-6153, CVE-2014-3577
org.apache.httpcomponents:httpclient 4.2.0CVE-2020-13956, CVE-2015-5262, CVE-2012-6153, CVE-2014-3577

Which of your client projects are still on org.apache.httpcomponents:httpclient 4.2?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact org.apache.httpcomponents:httpclient version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other org.apache.httpcomponents:httpclient versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the Maven registry. Refreshed daily.