Cross site scripting via missing binding syntax validation In ACS location in github.com/crewjam/saml
github.com/crewjam/saml is a saml library for the go language. In affected versions the package does not validate the ACS Location URI according to the SAML binding being parsed. If abused, this flaw allows attackers to register malicious Service Providers at the IdP and inject Javascript in the ACS endpoint definition, achieving Cross-Site-Scripting (XSS) in the IdP context during the redirection at the end of a SAML SSO Flow. Consequently, an attacker may perform any authenticated action as the victim once the victim’s browser loaded the SAML IdP initiated SSO link for the malicious service provider. Note: SP registration is commonly an unrestricted operation in IdPs, hence not requiring particular permissions or publicly accessible to ease the IdP interoperability. This issue is fixed in version 0.4.14. Users unable to upgrade may perform external validation of URLs provided in SAML metadata, or restrict the ability for end-users to upload arbitrary metadata.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2023-45683
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 6 Nov 2026, 04:27 UTC · Revision 1
Source evidence
Cross site scripting via missing binding syntax validation In ACS location in github.com/crewjam/saml
core-osv · Original sourcePublished 16 Oct 2023, 18:13 UTC
github.com/crewjam/saml is a saml library for the go language. In affected versions the package does not validate the ACS Location URI according to the SAML binding being parsed. If abused, this flaw allows attackers to register malicious Service Providers at the IdP and inject Javascript in the ACS endpoint definition, achieving Cross-Site-Scripting (XSS) in the IdP context during the redirection at the end of a SAML SSO Flow. Consequently, an attacker may perform any authenticated action as the victim once the victim’s browser loaded the SAML IdP initiated SSO link for the malicious service provider. Note: SP registration is commonly an unrestricted operation in IdPs, hence not requiring particular permissions or publicly accessible to ease the IdP interoperability. This issue is fixed in version 0.4.14. Users unable to upgrade may perform external validation of URLs provided in SAML metadata, or restrict the ability for end-users to upload arbitrary metadata.
osv:CVE-2023-45683
Complete source record
{
"id": "5564b7d6c7e7780f6e5b2fe351ced65332f1b99a1103dafa6f0cc165c51b3ff8",
"url": "https://osv.dev/vulnerability/CVE-2023-45683",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Cross site scripting via missing binding syntax validation In ACS location in github.com/crewjam/saml",
"summary": "github.com/crewjam/saml is a saml library for the go language. In affected versions the package does not validate the ACS Location URI according to the SAML binding being parsed. If abused, this flaw allows attackers to register malicious Service Providers at the IdP and inject Javascript in the ACS endpoint definition, achieving Cross-Site-Scripting (XSS) in the IdP context during the redirection at the end of a SAML SSO Flow. Consequently, an attacker may perform any authenticated action as the victim once the victim’s browser loaded the SAML IdP initiated SSO link for the malicious service provider. Note: SP registration is commonly an unrestricted operation in IdPs, hence not requiring particular permissions or publicly accessible to ease the IdP interoperability. This issue is fixed in version 0.4.14. Users unable to upgrade may perform external validation of URLs provided in SAML metadata, or restrict the ability for end-users to upload arbitrary metadata.",
"evidence": "osv:CVE-2023-45683",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2023-45683",
"aliases": [
"CVE-2023-45683",
"GHSA-267v-3v32-g6q5",
"GO-2023-2114"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/crewjam/saml",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "b07b16cf83c4171d16da4d85608cb827f183cd79"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "0.4.14"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "b07b16cf83c4171d16da4d85608cb827f183cd79"
}
],
"source": "REFERENCES_COMMIT"
},
{
"cpe": "cpe:2.3:a:saml_project:saml:*:*:*:*:*:go:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "0.4.14"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v0.4.13",
"v0.4.12",
"v0.4.11",
"v0.4.10",
"v0.4.9",
"v0.4.8",
"v0.4.7",
"v0.4.6",
"v0.4.5",
"v0.4.4",
"v0.4.3",
"v0.4.2",
"v0.4.1",
"v0.4.0",
"v0.3.1",
"v0.3.0",
"0.2.0",
"0.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-45683.json"
}
}
],
"modified": "2026-10-28T02:30:46.618599701Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/45xxx/CVE-2023-45683.json",
"https://github.com/crewjam/saml/security/advisories/GHSA-267v-3v32-g6q5",
"https://nvd.nist.gov/vuln/detail/CVE-2023-45683",
"https://github.com/crewjam/saml/commit/b07b16cf83c4171d16da4d85608cb827f183cd79"
],
"provider_metadata": {
"cwe_ids": [
"CWE-79"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/45xxx/CVE-2023-45683.json"
}
},
"related_cves": [
{
"value": "CVE-2023-45683",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 514612,
"published_at": "2023-10-16T18:13:10.451+00:00"
}