Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') Affecting github.com/crewjam/saml package, versions <0.4.14


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Not Defined
EPSS
0.07% (33rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMCREWJAMSAML-5971016
  • published17 Oct 2023
  • disclosed16 Oct 2023
  • creditanaximand3r

Introduced: 16 Oct 2023

CVE-2023-45683  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade github.com/crewjam/saml to version 0.4.14 or higher.

Overview

github.com/crewjam/saml is a package that contains a partial implementation of the SAML standard in golang. SAML is a standard for identity federation, i.e. either allowing a third party to authenticate your users or allowing third parties to rely on us to authenticate their users.

Affected versions of this package are vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') due to missing Binding syntax validation when it does not validate the ACS Location URI according to the SAML binding being parsed. An attacker can register malicious Service Providers at the IdP and inject Javascript in the ACS endpoint definition, achieving unauthorised actions in the victim's browser context during the redirection at the end of a SAML SSO Flow.

References

CVSS Scores

version 3.1