Inadequate encryption strength

ID

scala.cryptography.scala_crypto_rule_defaulthttpclient

Severity

low

Remediation Complexity

medium

Remediation Risk

medium

Remediation Effort

medium

Resource

Cryptography

Language

Scala

Description

DefaultHttpClient with default constructor is not compatible with TLS 1.2

Rationale

DefaultHttpClient with default constructor is not compatible with TLS 1.2

The following code illustrates a vulnerable pattern detected by this rule:

class CatalogueFetcher {
  @throws[IOException]
  def fetch(): Unit = {
    // VULNERABLE: Inadequate encryption strength
    val client = new DefaultHttpClient
    val request = new HttpGet("https://catalogue.internal/items")
    client.execute(request)
  }
}

Remediation

Follow secure coding practices and review the references below for detailed remediation guidance.

Configuration

This detector does not need any configuration.

References

© 2026 Xygeni. All rights reserved