HL7 FHIR IG Publisher potentially exposes GitHub repo user and credential information
Moderate severity
GitHub Reviewed
Published
Jan 24, 2025
in
HL7/fhir-ig-publisher
•
Updated Jan 24, 2025
Description
Published by the National Vulnerability Database
Jan 24, 2025
Published to the GitHub Advisory Database
Jan 24, 2025
Reviewed
Jan 24, 2025
Last updated
Jan 24, 2025
Impact
In CI contexts, the IG Publisher CLI uses git commands to determine the URL of the originating repo. If the repo was cloned, or otherwise set to use a repo that uses a username and credential based URL, the entire URL will be included in the built Implementation Guide, exposing username and credential. This does not impact users that clone public repos without credentials, such as those using the auto-ig-build continuous integration infrastructure.
Patches
This problem has been patched in release 1.8.9
Workarounds
Users should update to 1.8.9 or the latest release
OR
Users should ensure the IG repo they are publishing does not have username or credentials included in the
origin
URL. Running the commandgit remote origin url
should return a URL that contains no username, password, or token.OR
Users should run the IG Publisher CLI with the
-repo
parameter and specify a URL that contains no username, password, or token.References