There is insufficient restrictions of called script functions in Apache Jena versions 4.8.0 and earlier. It allows a remote user to execute javascript via a SPARQL query. This issue affects Apache Jena: from 3.7.0 through 4.8.0.
{ "binaries": [ { "binary_version": "3.17.0-3", "binary_name": "libapache-jena-java" } ] }
{ "binaries": [ { "binary_version": "4.9.0-1", "binary_name": "libapache-jena-java" } ] }