# Keycloak allows arbitrary Javascript to be uploaded for SAML protocol mapper even if UPLOAD_SCRIPTS feature disabled

Source: https://junglewise.ai/threats/keycloak-allows-arbitrary-javascript-to-be-uploaded-for-saml-protocol-a6a53f84  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-08-06  
License: CC BY 4.0 with a link back

Severity: low · CVSS 3.1 · Published 2022-08-06

Keycloak allows arbitrary Javascript to be uploaded for SAML protocol mapper even if UPLOAD_SCRIPTS feature disabled

Technologies: [org.keycloak:keycloak-saml-core (Maven)](https://junglewise.ai/threats/technologies/org-keycloak-keycloak-saml-core). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** Low severity, with a CVSS score of 3.1, published 6 August 2022.

**Which products and versions are affected?** org.keycloak:keycloak-saml-core (Maven) ECOSYSTEM:introduced=0,last_affected=19.0.1.

**Is there a fix for This vulnerability?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**Am I affected?** Check whether you run org.keycloak:keycloak-saml-core (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Affected products

- org.keycloak:keycloak-saml-core (Maven) ECOSYSTEM:introduced=0,last_affected=19.0.1

## Related threats

- [Keycloak denial of service in SAML endpoint](https://junglewise.ai/threats/cve-2026-7307-keycloak-denial-of-service-in-saml-endpoint)
- [Red Hat Keycloak Denial of Service via SAMLRequest decompression](https://junglewise.ai/threats/cve-2026-2575-red-hat-keycloak-denial-of-service-via-samlrequest-decompression)
- [Improper Verification of SAML Responses Leading to Privilege Escalation in Keycloak](https://junglewise.ai/threats/cve-2024-8698-improper-verification-of-saml-responses-leading-to-privilege)
- [Duplicate Advisory: Keycloak SAML signature validation flaw](https://junglewise.ai/threats/duplicate-advisory-keycloak-saml-signature-validation-flaw-ccf0b80d)
- [ECP SAML binding bypasses authentication flows](https://junglewise.ai/threats/cve-2021-3827-ecp-saml-binding-bypasses-authentication-flows)
