Summary:
- GitHub found critical vulnerabilities in the ruby-saml library that can allow account takeover.
- The flaws, CVE-2025-25291 and CVE-2025-25292, let an attacker bypass SAML authentication.
- GitHub Security Lab worked with the ruby-saml maintainers to fix the issue.
- Many applications rely on ruby-saml for single sign-on.
- Fixed versions are 1.18.0 and 1.12.4.
Introduction: A Wake-Up Call for Security
In March 2025, GitHub disclosed two critical vulnerabilities in ruby-saml, a widely used Ruby library for SAML single sign-on. The flaws, tracked as CVE-2025-25291 and CVE-2025-25292, can let an attacker log in as another user. Any application that uses the library for authentication was at risk until it updated.
Understanding the Vulnerability
SAML is how many companies handle single sign-on. ruby-saml checks the signed messages that tell an application who a user is. These bugs broke that check.
Start your morning with the signal that matters.
Weekday mornings. Five minutes. What changed in security, why it matters.
By subscribing you agree to our Privacy Policy.
Free. Weekday mornings. 5 minutes or less.
The Technical Breakdown
The root cause is a parser differential. ruby-saml used two different XML parsers, REXML and also Nokogiri, and the two could read the same document differently. An attacker holding one valid signed SAML document from the identity provider could craft a response that one parser verified while the other read a different identity, which is a classic signature wrapping attack. The result is account takeover.
Response from the Cybersecurity Community
GitHub Security Lab researcher Peter Stöckli found the issue while reviewing ruby-saml. GitHub worked with the library’s maintainers on a fix, an example of coordinated disclosure working as intended.
Patching and Prevention
The maintainers released ruby-saml 1.18.0 and 1.12.4 with the fixes. Developers were urged to update right away. Libraries that depend on ruby-saml, such as omniauth-saml, also needed updates. Fast patching matters here, since attackers move quickly once details are public.
Impact on Developers and Businesses
The impact reaches beyond single users. Developers and companies that rely on ruby-saml for authentication had to check their dependencies. SAML libraries are a recurring source of serious bugs, so the lesson is to track them closely.
Advisory and Future Considerations
GitHub and the ruby-saml maintainers published advisories to help developers secure their systems. The episode shows why continuous monitoring and regular updates are worth the effort.
The Bigger Picture
Finding vulnerabilities like these before attackers do is the goal. Here, it worked.
Start your morning with the signal that matters.
Weekday mornings. Five minutes. What changed in security, why it matters.
By subscribing you agree to our Privacy Policy.
Free. Weekday mornings. 5 minutes or less.
The Road Ahead
Developers should adopt a security-first mindset. Track your dependencies.
Conclusion: Reflecting on Cybersecurity Preparedness
The ruby-saml flaws are a useful lesson in preparedness. They show the risks hidden in common dependencies, and the value of coordinated disclosure. Keeping authentication libraries patched protects millions of users.
Shining a light on bugs like this makes the software everyone uses a little safer.
Newer CyberExperts coverage on this topic
This article still works as background. If you want the current picture, start with the freshest related coverage below and today's brief.
Citrix NetScaler CVE-2026-19490: The Auth Bypass That Went From PoC to Probes in a Day
CVE-2026-19490 is a CVSS 9.3 NetScaler Gateway/AAA auth bypass. A public PoC on Sept 2 was followed by live probes within a...
PaperCut NG/MF: The Print Server That Learned Remote Code Execution Again
CVE-2026-81578 and CVE-2026-82078 chain to pre-auth RCE on PaperCut Application Server. Confirm Emergency Patch Release 2, restrict admin exposure, and hunt like...
JFrog Artifactory CVE-2026-82329: Empty Join Key, Full Admin Token, Busy Scanners
CVE-2026-82329 lets attackers forge Artifactory admin tokens via a deterministic empty join key. Mass scanning peaked near 406,000 attempts; patch fixed builds...
Friday’s brief: Apache’s HTTP/2 fix, then Check Point break-ins, a ScreenConnect add-on and a GitHub secret stealer
The fastest way to catch up on what changed after this article was published.
Start your morning with the signal that matters.
Get the biggest cybersecurity developments, why they matter, and where to go deeper on CyberExperts.
By subscribing you agree to our Privacy Policy.
Free. Weekdays. Built for operators.