Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8347015

Remove support for Security Manager in Nashorn

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • None
    • core-libs
    • None

      Due to its lineage as integral part of OpenJDK – and thus an attractive
      vector of attack – Nashorn has a lot of code dealing with proper operation
      under a security manager. Most of that code is not particularly relevant
      now that it is not part of OpenJDK, and even less since the Security
      Manager was deprecated in Java 17 with JEP 411 and slated to be
      permanently disabled in Java 24 with JEP 486, with the removal of the
      API sometime in the future.

      The time has come to also remove Security Manager support from Nashorn. As JEP 486 states, deprecating the Security Manager had hardly any impact, proving that almost nobody uses it:

      "Since the release of JDK 17, the maintainers of some of the handful of
      frameworks and tools that supported the Security Manager have removed
      support for it; these include Derby, Ant, SpotBugs, and Tomcat. The
      maintainers of Jakarta EE removed the requirement for EE applications to
      support the Security Manager. We are not aware of any new projects that
      support the Security Manager."

      I guess if even Tomcat can live without the Security Manager, then so can
      Nashorn.

            attila Attila Szegedi
            attila Attila Szegedi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: