See how plv8 compares to other vendors in security performance
plv8 through 3.2.5 contains an unbounded stack allocation vulnerability in GetJsonbValue that allows low-privileged database roles to crash backends by passing large jsonb strings. Attackers can call any plv8 function with a jsonb string of tens of megabytes to overflow the stack and repeatedly restart the entire PostgreSQL cluster.
A user who can create objects in a database with plv8 3.2.1 installed is able to cause deferred triggers to execute as the Superuser during autovacuum.