Common Weakness Enumeration

    CWE Definition / CWE-487

    CWE-487: Reliance on Package-level Scope

    Java packages are not inherently closed; therefore, relying on them for code security is not a good practice.

    Published:19 Jul 2006
    Organization:MITRE
    Modified:11 Dec 2025

    Related Weakness

    CWE-664: Improper Control of a Resource Through its Lifetime