Dependabot fixes for tar packages and integrity checking in cdn files#24
Merged
joabech merged 2 commits intoanalogdevicesinc:mainfrom Apr 13, 2026
Merged
Conversation
Update the tar direct dependency from 0.4 to 0.4.45 in dsdk-cli to fix two security vulnerabilities: CVE-2025-62518 (PAX size header bypass): The tar crate skipped the PAX size header when the base header size was nonzero, causing file sizes to be parsed differently than other parsers like Go's archive/tar. An attacker can exploit this to create archives that extract differently depending on which tool unpacks them. Symlink permission bypass: The unpack_dir function checked fs::metadata() (which follows symlinks) to see if a path was an existing directory. A crafted tarball with a symlink followed by a directory with the same name tricks the code into calling chmod on the symlink target, allowing attackers to change permissions on arbitrary directories outside the extraction root. Fixes analogdevicesinc#5, analogdevicesinc#6 Signed-off-by: Joakim Bech <Joakim.Bech@analog.com>
Add Subresource Integrity (SRI) attributes and crossorigin / referrerpolicy to the two GSAP script tags from cdnjs, as required by GitHub's CodeQL scanner. SRI ensures the browser verifies scripts match a cryptographic hash before executing them, preventing supply-chain attacks where a CDN might serve tampered code. Fixes analogdevicesinc#10, analogdevicesinc#11 Signed-off-by: Joakim Bech <Joakim.Bech@analog.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix Dependabot and code scanning issues.