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

Security vulnerability in libpq thus dependency tree issue: pg -> pg-native -> libpq #2786

Closed
Leigh-M opened this issue Aug 19, 2022 · 1 comment · Fixed by #2787
Closed

Comments

@Leigh-M
Copy link

Leigh-M commented Aug 19, 2022

pg depends on pg-native. pg-native has a high severity vulnerability issue with its version of libpq. Thus 'npm audit fix' does not work. Or with '--force' flag breaks the build.

Will install [email protected], which is a breaking change
node_modules/libpq
pg-native *
Depends on vulnerable versions of libpq
node_modules/pg-native
pg >=8.4.0
Depends on vulnerable versions of pg-native
node_modules/pg

Just registering here so it is logged

@brianc
Copy link
Owner

brianc commented Aug 19, 2022

Oh i see - its a bug in the libpq binding. So type-checking the argument on the JavaScript side before passing this to the C/C++ binding should fix the issue. I'll try to look at this today & get a fix out.

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

Successfully merging a pull request may close this issue.

2 participants