
Apache Shiro
Apache Shiro is a powerful and easy-to-use Java security framework that performs authentication, authorization, cryptography, and session management
The Lens
By Erik Loyd, SaaS CEO and former COO/CFO of an AWS Premier Partner.
Updated Sep 2026
Apache Shiro is a security library Java developers drop into an app to handle logins, permissions, password hashing, and user sessions. Its pitch is independence. It works in plain Java programs, not just web apps, and does not force Spring or an application server on you. Apache 2.0, free, and run by the Apache Software Foundation.
Nothing to host. You add the Maven dependencies, configure realms (where your users live) and filter chains, and it runs inside your app. The ops burden is upgrades. Version 3 became the current line in June 2026 and needs Java 17, Jakarta EE 9 or later, and Spring 6 or later if you use Spring. The EhCache and Hazelcast modules are gone in favor of JCache, and 3.0 ships other breaking changes.
Free at every size. Teams already on Spring Boot should use Spring Security, which has first-party OAuth 2.0 and SAML support. Shiro only gets OAuth through community integrations like pac4j. Pick Shiro for non-Spring apps, or when you want sessions without a web container.
The catch: 2026 has been a rough security year. The project published ten CVEs after none since 2023, including a session fixation bug in default configurations. One of them affects 2.x through 3.0.0, and the only upgrade the advisory names is 3.0.1. Plan the v3 migration now.
Free vs Self-Hosted vs Paid
fully freeFree: Everything. Apache 2.0 library covering authentication, authorization, cryptography, and session management, with official Spring, Guice, and CAS integrations.
Self-hosted: It is a library inside your own Java app, so there is no server to run. The cost is upgrade work: the move from 2.x to 3.x is breaking and requires Java 17.
Paid: No paid edition. The project lists two companies, Flow Logix and Yupiik, offering commercial support and consulting, with no published prices.
Completely free and open source. Budget engineering time for the v3 upgrade and the 2026 security patches.
What to do by team size
- Solo
- free
- Small team
- free
- Medium team
- free; schedule the v3 migration
- Large team
- free; commercial support exists from third parties if you need a contract
Get tools like this every Wednesday
One featured tool, three on the radar. No fluff.
A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores
Trust Signals
License: Apache License 2.0
Use freely. Patent grant included.
Commercial use: ✓ Yes
About
- Owner
- The Apache Software Foundation (Organization)
- Stars
- 4,463
- Forks
- 2,292
Explore Further
More tools in the directory
RxJava
RxJava – Reactive Extensions for the JVM – a library for composing asynchronous and event-based programs using observable sequences for the Java VM.
48.2k ★ccxt
A unified trading API with more than 100 crypto exchanges and prediction markets in JavaScript / TypeScript / Python / C# / PHP / Go / Java
44.1k ★airbyte
The leading data integration platform for ETL / ELT data pipelines from APIs, databases & files to data warehouses, data lakes & data lakehouses. Both self-hosted and Cloud-hosted.
22.1k ★