create-webroles

Warn

Audited by Socket on Sep 15, 2026

1 alert found:

Anomaly
AnomalyLOW
scripts/create-web-role.js

The code appears to be a legitimate role-generation CLI, but it has input-validation weaknesses. The user-controlled role name can influence both the YAML document and output path, creating a potential YAML injection/corruption issue and possible path traversal or unintended file overwrite. The project root is also fully caller-controlled by design. No clear malware, data exfiltration, or backdoor behavior is present in this fragment. Remediation should validate the role name against a safe filename pattern, reject path separators and dot segments, quote or safely serialize YAML values, and verify the resolved output path remains within the intended directory.

Confidence: 97%Severity: 62%
Audit Metadata
Analyzed At
Sep 15, 2026, 10:16 AM
Package URL
pkg:socket/skills-sh/microsoft%2Fpower-platform-skills%2Fcreate-webroles%2F@ebf46958e943c0ba23741fa660d8e376002a41aca2b3d566841fbba6328dcd58
Security Audit — socket — create-webroles