Tools/apache/shiro

Apache Shiro

Apache Shiro is a powerful and easy-to-use Java security framework that performs authentication, authorization, cryptography, and session management

4.5kemergingJavaApache License 2.0trending

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 free

Free: 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
Self-hosting ops:moderate

Get tools like this every Wednesday

One featured tool, three on the radar. No fluff.

Score
82/100 · A
Adoption19/30
Maintenance25/25
Community13/20
License15/15
Analysis10/10

A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores

Trust Signals

Active community: 2,292 forksCommunity discussions enabledOrganization account (3172 public repos)Notable author: 24,238 followers

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