Claude Discovers Vulnerabilities Across 16 SAML Projects in One Month, Exposing Maintenance Gaps

Security researcher Eric Chiang used Anthropic's Claude Opus model to identify vulnerabilities in 16 SAML implementations over roughly one month of evening work. The effort uncovered four full authentication bypasses in projects including Authentik, lightsaml, OneUptime, and saml-client, plus twelve additional signature bypass issues affecting secondary protocol messages. A notable finding was CVE-2026-57580 in Authentik, independently reported by eight researchers, which allowed XML comment injection in the NameID field to hijack accounts under specific configuration settings. Chiang built a two-phase agent pipeline that first searched for behavioral anomalies in libraries and then combined them into working exploits, without needing to train the model on prior SAML vulnerabilities. Many maintainers either ignored reports or struggled to distinguish real issues from AI-generated noise, with one project requiring three iterations of fixes before the patches held. The researcher concluded that while discovering SAML flaws has become inexpensive, patching them remains costly and under-resourced, reinforcing his long-standing recommendation to avoid custom SAML code in favor of established libraries or OpenID Connect.

HabrTranslated from Russian

Read at source

Security researcher Eric Chiang, CTO of Oblique Security, used Anthropic's Claude Opus model to uncover vulnerabilities in 16 SAML implementations during approximately one month of evening work. The project was conducted under the Anthropic Cyber Verification Program, which removed safety restrictions and allowed the model to generate working exploits.

Four complete authentication bypasses were found in Authentik, the PHP library lightsaml, the OneUptime platform, and the Java project saml-client. An additional twelve projects proved vulnerable to signature bypasses on secondary protocol messages such as AuthnRequest, AttributeQuery, and LogoutRequest, enabling data disclosure and forced session termination. Several libraries were also driven into denial-of-service conditions through unauthenticated XML POST requests that exhausted memory.

The most prominent single issue was CVE-2026-57580 in Authentik, independently reported by eight researchers. The flaw allowed an attacker to insert an XML comment into the NameID field, truncate the value to an attacker-controlled address, and maintain a valid signature under non-default account mapping configurations. The vulnerability was fixed in versions 2026.2.6 and 2026.5.5.

Chiang's pipeline operated in two phases. The first phase used agents to locate behavioral anomalies, or "gadgets," across SAML libraries. The second phase combined these gadgets into end-to-end exploits. Intermediate results were stored in JSONL files, and a deduplication step discarded out-of-scope findings before expensive verification tokens were spent. No specialized training on past SAML vulnerabilities was required; providing historical examples actually reduced the model's effectiveness by encouraging it to search only for known patterns.

Reporting the findings proved more difficult than discovering them. The OneUptime project initially ignored the private report, then merged large pull requests generated without human review that Chiang subsequently broke. Three rounds of fixes were ultimately needed. Other maintainers either failed to respond or were overwhelmed by the volume of AI-generated reports, with one company requesting screen recordings to filter automated submissions.

Chiang, who previously added SAML support to the Dex project nearly a decade ago, has long argued that the protocol is inherently fragile due to the separation between signature verification libraries and application logic. He was unable to break the core protocol itself in mature implementations and recommends that organizations avoid writing custom SAML code, preferring established libraries or migrating to OpenID Connect.

Meridian digestThe week's most consequential security stories, distilled into one briefing.See the digest

More in Vulnerabilities & Exploits

Telegram for Android Patches Voice Call Vulnerability Enabling Code Execution
Yandex Patches Millions of Stations After eMudhra Certificate Keys Compromised
Cisco ASA and FTD Face DoS Vulnerability in SSL VPN Already Exploited in the Wild