Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Known vulnerability in outdated pgx dependency, pgproto3-1.1.0 #182

Closed
VitruvianVice opened this issue Aug 15, 2022 · 2 comments
Closed

Comments

@VitruvianVice
Copy link

The latest version of pgtype, 1.12.0, relies on an outdated version of pgx, version 4.12. It uses the pgproto3 v1.1.0.

The latest stable pgx version is 4.17, with pgproto3 v2.3.1

The Sonatype OSS Index determines the former version of pgproto to contain a "medium" grave vulnerability due to unrestricted resource consumption.

This seems to be resolvable by upgrading pgx to a more recent version.

@jackc
Copy link
Owner

jackc commented Aug 17, 2022

The Sonatype OSS Index determines the former version of pgproto to contain a "medium" grave vulnerability due to unrestricted resource consumption.

It's a false alarm. It appears the "Sonatype OSS Index" does not distinguish between test and non-test dependencies. pgtype only uses pgx in tests.

This seems to be resolvable by upgrading pgx to a more recent version.

If this vulnerability scanner has the same flaws as others it won't be satisfied. pgx depends on pgtype and pgtype's tests depend on pgx. This causes problems for scanners that naively follow the test dependency chain. See jackc/pgx#1052 for more info.

@VitruvianVice
Copy link
Author

I see. Looking closer at it I can confirm that you're absolutely right!
Thank you for pointing that out!
Also thanks for your work!

I'll close the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants