# GHSA-5g3j-89fr-r2vp: skilleton has improper input handling in repository/path processing

- Severity: Medium (CVSS:4.0, scored by GitHub) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-04-08T00:07:36.000Z
- Modified: 2026-04-08T00:23:44.063Z
- Weaknesses: CWE-78, CWE-88, CWE-400, CWE-1333

## Description

## Summary

`skilleton` versions prior to `0.3.1` include security-related weaknesses in repository normalization and path handling logic.  
Version `0.3.1` contains fixes and additional test coverage for these issues.

## Affected Versions

`<0.3.1`

## Patched Versions

`>=0.3.1`

## Impact

In affected versions, crafted input could trigger unsafe or inefficient behavior in repository/path processing code paths.  
`0.3.1` mitigates this by:
- replacing vulnerable parsing behavior with deterministic logic,
- validating subpaths earlier before allocating git worktree resources,
- adding stricter and broader regression tests around these flows.

## Severity

Low to Moderate (project-maintainer assessed)

## Mitigation

Upgrade to `0.3.1` or later.

## Workarounds

No complete workaround is recommended other than upgrading.

## References

- Branch: [`fix/security-code-scanning-alerts`](https://github.com/Fcmam5/skilleton/pull/9)
- Commits:
  - [fix(security): harden git arg handling and path validation](https://github.com/Fcmam5/skilleton/pull/9/changes/42bc280ad675bfaa7b1bbc192330fb582bb28172)
  - [fix(security): use while loop in normalizeRepoUrl instead of regex](https://github.com/Fcmam5/skilleton/pull/9/changes/6613160803ec8655efee9a270eeaa767ad22da8b)
- Security Policy: [SECURITY.md](https://github.com/Fcmam5/skilleton/blob/master/SECURITY.md)

## Credits

Detected through automated code scanning and remediated by project maintainers.

(As written by GitHub Advisory Database.)

## Affected

- skilleton (npm): before 0.3.1

## References

- <https://github.com/Fcmam5/skilleton/security/advisories/GHSA-5g3j-89fr-r2vp> (web)
- <https://github.com/Fcmam5/skilleton/pull/9/changes/42bc280ad675bfaa7b1bbc192330fb582bb28172> (web)
- <https://github.com/Fcmam5/skilleton/pull/9/changes/6613160803ec8655efee9a270eeaa767ad22da8b> (web)
- <https://github.com/Fcmam5/skilleton> (package)

## Sources

- GitHub Advisory Database: [GHSA-5g3j-89fr-r2vp](https://github.com/advisories/GHSA-5g3j-89fr-r2vp), CC-BY-4.0, modified 2026-04-08

---

Page: https://cve.day/GHSA-5g3j-89fr-r2vp · Whole record: https://cve.day/GHSA-5g3j-89fr-r2vp.json · Rebuilt by cve.day 2026-11-25T22:56:44.182Z
