ZAP Scan warnings

35 views
Skip to first unread message

Nathan

unread,
May 12, 2026, 8:44:41 AM (2 days ago) May 12
to ZAP User Group
Hi I have recently started getting the following scan warnings and it seems to be stopping my regular scans.

"Found Java version 25.0.3-ea
Available memory: 5829 MB
Using JVM args: -Xmx1457m
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by io.netty.util.internal.PlatformDependent0$4 (file:/home/kalipurple/.ZAP/plugin/network-beta-0.27.0.zap)
WARNING: Please consider reporting this to the maintainers of class io.netty.util.internal.PlatformDependent0$4
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by com.oracle.truffle.polyglot.JDKSupport in an unnamed module (file:/home/kalipurple/.ZAP/addOnData/graaljs/0.14.0/libs/truffle-api-25.0.2.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled
"


I am using the kali version below.

Distributor ID: Kali
Description:    Kali GNU/Linux Rolling
Release:        2026.1
Codename:       kali-rolling


I see it says " Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module" currently I am using the following command line to run scans.

owasp-zap -cmd -quickurl "My URL" -quickout /home/kalipurple/owasp/$(date +\%d.%m.%y-)Name.html

Can anyone help me fix this please?

kingthorin+zap

unread,
May 12, 2026, 10:22:50 AM (2 days ago) May 12
to ZAP User Group
That's a Java 25 issue. We haven't addressed all the issues against 25 yet. 17 and 21 should both be fine.

Nathan

unread,
May 12, 2026, 10:57:53 AM (2 days ago) May 12
to ZAP User Group
Ok thanks for letting me know, would you recommend downgrading to java version 21 for now?
Reply all
Reply to author
Forward
0 new messages