Skip to content

Fix sql injection vulnerability in pgsodium.mask_role#115

Merged
michelp merged 2 commits intomichelp:mainfrom
svenklemm:mask_role
Oct 6, 2025
Merged

Fix sql injection vulnerability in pgsodium.mask_role#115
michelp merged 2 commits intomichelp:mainfrom
svenklemm:mask_role

Conversation

@svenklemm
Copy link
Contributor

pgsodium.mask_role does not properly quote the view_name argument before using it in a generated sql query. This is especially critical since mask_role is a security definer function.

pgsodium.mask_role does not properly quote the view_name argument
before using it in a generated sql query. This is especially critical
since mask_role is a security definer function.
@michelp michelp merged commit b0eefc4 into michelp:main Oct 6, 2025
1 check passed
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 this pull request may close these issues.

2 participants