Visit NES for PostgreSQL JDBC Driver Home Page

NES for PostgreSQL JDBC Driver 42.3.x Setup

Installation and configuration guide for NES for PostgreSQL JDBC Driver 42.3.x

Setup Instructions

Configure Registry

Create or update your registry configuration:

Maven (~/.m2/settings.xml)
Gradle (~/.gradle/gradle.properties)
<settings>
  <servers>
    <server>
      <id>herodevs-nes-registry</id>
      <username>any_text_here_not_used</username>
      <password>YOUR_NES_ACCESS_TOKEN</password>
    </server>
  </servers>
</settings>

Update Build Configuration

Add the NES repository and dependencies to your build configuration. NES for PostgreSQL JDBC Driver keeps the upstream org.postgresql Maven coordinates and publishes a single postgresql artifact, so only the version changes.

In a Spring Boot application that uses Spring Boot dependency management, set the postgresql.version property to apply the NES version to every artifact that Spring Boot manages. See Spring Boot Dependency Management for details.

Maven (pom.xml)
Gradle (Groovy)
Gradle (Kotlin)
<properties>
  <postgresql.version>42.3.10-pgjdbc-42.3.12</postgresql.version>
</properties>

<!-- Add NES repository -->
<repositories>
  <repository>
    <id>herodevs-nes-registry</id>
    <url>https://registry.nes.herodevs.com/maven</url>
  </repository>
</repositories>

Otherwise, add the NES dependencies directly to your build configuration:

Maven (pom.xml)
Gradle
<!-- Update the PostgreSQL JDBC Driver dependency version -->
<dependencies>
  <dependency>
    <groupId>org.postgresql</groupId>
    <artifactId>postgresql</artifactId>
    <version>42.3.10-pgjdbc-42.3.12</version><!-- Updated Version -->
  </dependency>
</dependencies>

<!-- Add NES repository -->
<repositories>
  <repository>
    <id>herodevs-nes-registry</id>
    <url>https://registry.nes.herodevs.com/maven</url>
  </repository>
</repositories>

Build

In order to remove potential obstacles before building your project, make sure the following domains are whitelisted by your firewall/networking team:

  • registry.nes.herodevs.com
  • assets.nes.herodevs.com

This will ensure that your network/firewall allows connection to our registry.

Run your build tool:

Maven
Gradle
mvn clean package

Verification

To verify your installation, check that:

  1. Dependencies are downloaded successfully
  2. No version conflicts are reported in your build
  3. Your application starts without errors

SCRAM Iteration Limit

The fix for CVE-2026-42198 adds a connection property, scramMaxIterations, that caps the PBKDF2 iteration count the driver accepts during SCRAM authentication. The default is 100000. When a server advertises a higher count, the driver refuses the handshake instead of computing the password proof.

Most deployments need no change, because PostgreSQL's own scram_iterations default is 4096. If you connect to a server configured above the cap, raise scramMaxIterations to match that server rather than lowering the server setting. Setting it to 0 disables the cap; a negative value is rejected.

jdbc:postgresql://localhost:5432/mydb?scramMaxIterations=200000

The property is also available on BaseDataSource, so PGSimpleDataSource and PGPoolingDataSource expose it as setScramMaxIterations(int).

Manual Downloads

The direct download URLs for NES for PostgreSQL JDBC Driver packages follow this format:

PortionValue
base_urlhttps://registry.nes.herodevs.com/maven/org/postgresql/
package_namepostgresql
version42.3.10-pgjdbc-42.3.12
filenamepackage_name + version + extension

Example Link

https://registry.nes.herodevs.com/maven/org/postgresql/postgresql/42.3.10-pgjdbc-42.3.12/postgresql-42.3.10-pgjdbc-42.3.12.jar