x509-validation does not enforce pathLenConstraint

x509-validation Updated 02 Oct 2025

Summary

19/07/2023
N/A
Yes i
Unrated
Not published

HSEC-2023-0006: x509-validation does not enforce pathLenConstraint. Affects x509-validation versions >= 1.4.0, < 1.4.8. Fixed in 1.4.8. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The x509-validation package is a component of the Hackage ecosystem. It provides functionality for validating X.509 certificates. X.509 is a standard format for public key certificates used in various cryptographic applications. The x509-validation package is responsible for ensuring the validity and integrity of these certificates.

Vulnerability Detail

The x509-validation package, prior to version 1.4.8, suffers from a vulnerability where it does not enforce the pathLenConstraint value. This means that constrained Certification Authorities (CAs) could mistakenly or intentionally issue CAs below the maximum depth. As a result, x509-validation would accept certificates issued by these unauthorized intermediate CAs. This vulnerability poses a risk to the integrity and security of the certificate validation process, potentially allowing for the acceptance of invalid or compromised certificates.

How To Fix

Minimum fixed version

1.4.8

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability.

Conclusion

The x509-validation package prior to version 1.4.8 is vulnerable to a pathLenConstraint enforcement issue. This vulnerability allows for the acceptance of certificates issued by unauthorized intermediate CAs, potentially compromising the integrity and security of the certificate validation process. It is recommended to update the package to version 1.4.8 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for x509-validation →

Share this vulnerability

FAQ

The x509-validation package is a component of the Hackage ecosystem that provides functionality for validating X.509 certificates.

This vulnerability allows for the acceptance of certificates issued by unauthorized intermediate CAs, potentially compromising the integrity and security of the certificate validation process.

To fix this vulnerability, update the x509-validation package to version 1.4.8 or later.

No specific workarounds have been mentioned for this vulnerability.

For more information about this vulnerability, refer to the source link provided in the security advisory database.

References

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

1.4.8

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback