/

CVE-2026-119662

Severity:

HIGH RISK

(8.8)

Hardcoded Credentials (CWE-798) in Songloft Endpoint

CVE-2026-119662

Deferred

Vulnerability type

Category:

Hardcoded Credentials

CWE:

CWE-798

Impact:

Authentication Bypass and Administrative Code Execution

Severity:

HIGH RISK

(8.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Songloft versions 2.9.0 through before 2.13.6 contain fixed administrator credentials that allow adjacent-network attackers to authenticate through the login API. Successful authentication may permit changes to library and configuration settings, including installation of JavaScript plugins executed by the QuickJS runtime.

Songloft versions 2.9.0 through before 2.13.6 contain fixed administrator credentials that allow adjacent-network attackers to authenticate through the login API. Successful authentication may permit changes to library and configuration settings, including installation of JavaScript plugins executed by the QuickJS runtime.

Affected context

The vulnerability occurs in Songloft deployments where the API login service accepts a statically embedded administrator credential pair. It is especially risky when the service is reachable by users or systems on an adjacent network and administrative authentication grants access to configuration, library-management, or plugin-installation functions.

The vulnerability occurs in Songloft deployments where the API login service accepts a statically embedded administrator credential pair. It is especially risky when the service is reachable by users or systems on an adjacent network and administrative authentication grants access to configuration, library-management, or plugin-installation functions.

Exploit preconditions

  • Attack surface: Songloft's /api/v1/auth/login endpoint
  • Required access: Network reachability from an adjacent network position
  • Authentication state: No valid account is required if the fixed administrator credentials remain accepted
  • Trigger point: Authentication processing at the API login endpoint
  • Why exploitation is possible: A shared, predictable credential pair provides administrative access instead of requiring unique, protected credentials
  • Attack surface: Songloft's /api/v1/auth/login endpoint
  • Required access: Network reachability from an adjacent network position
  • Authentication state: No valid account is required if the fixed administrator credentials remain accepted
  • Trigger point: Authentication processing at the API login endpoint
  • Why exploitation is possible: A shared, predictable credential pair provides administrative access instead of requiring unique, protected credentials

Why this happens

The underlying issue is the inclusion and acceptance of hardcoded administrator credentials in the application. Because the credential values are fixed and shared across affected deployments, an attacker who knows them can authenticate as an administrator. This maps to CWE-798: Use of Hard-coded Credentials, where sensitive authentication material is embedded in software rather than securely provisioned, rotated, and managed.

The underlying issue is the inclusion and acceptance of hardcoded administrator credentials in the application. Because the credential values are fixed and shared across affected deployments, an attacker who knows them can authenticate as an administrator. This maps to CWE-798: Use of Hard-coded Credentials, where sensitive authentication material is embedded in software rather than securely provisioned, rotated, and managed.

Potential impact

  • Unauthorized administrative access may be obtained
  • Library and application configuration may be modified
  • Malicious JavaScript plugins could be installed
  • Code may execute within the QuickJS runtime
  • Application data or service availability could be affected
  • The compromise could be used as a stepping stone toward other reachable systems
  • Unauthorized administrative access may be obtained
  • Library and application configuration may be modified
  • Malicious JavaScript plugins could be installed
  • Code may execute within the QuickJS runtime
  • Application data or service availability could be affected
  • The compromise could be used as a stepping stone toward other reachable systems

General mitigation guidance

Mitigation generally focuses on removing embedded credentials and reducing the privileges available through administrative APIs.

Common defensive patterns include:

  • Replacing fixed credentials with securely provisioned, unique secrets
  • Requiring administrative credentials to be changed during initial setup
  • Supporting credential rotation, revocation, and strong secret storage
  • Restricting administrative endpoints to trusted network segments or management interfaces
  • Applying least privilege to library, configuration, and plugin-management functions
  • Requiring explicit authorization and review before installing executable plugins
  • Treating plugins as untrusted code and isolating their runtime capabilities where practical

Mitigation generally focuses on removing embedded credentials and reducing the privileges available through administrative APIs.

Common defensive patterns include:

  • Replacing fixed credentials with securely provisioned, unique secrets
  • Requiring administrative credentials to be changed during initial setup
  • Supporting credential rotation, revocation, and strong secret storage
  • Restricting administrative endpoints to trusted network segments or management interfaces
  • Applying least privilege to library, configuration, and plugin-management functions
  • Requiring explicit authorization and review before installing executable plugins
  • Treating plugins as untrusted code and isolating their runtime capabilities where practical

How teams detect issues like this

Organizations can look for this weakness through:

  • Static analysis searches for administrator usernames, default password pairs, and credential literals
  • Code review checks for authentication comparisons against constants
  • Secret-scanning policies covering source code, packaged assets, and configuration files
  • API tests that verify default or known credentials are rejected
  • Network monitoring for unexpected access to administrative login endpoints
  • Audit logging for administrator logins, configuration changes, and plugin installation events

Automated application-security and secret-detection tools may help identify embedded authentication material during development and release review.

Organizations can look for this weakness through:

  • Static analysis searches for administrator usernames, default password pairs, and credential literals
  • Code review checks for authentication comparisons against constants
  • Secret-scanning policies covering source code, packaged assets, and configuration files
  • API tests that verify default or known credentials are rejected
  • Network monitoring for unexpected access to administrative login endpoints
  • Audit logging for administrator logins, configuration changes, and plugin installation events

Automated application-security and secret-detection tools may help identify embedded authentication material during development and release review.

Sources

SourceLink
github.comgithub.com/songloft-org/songloft
github.comgithub.com/songloft-org/songloft/blob/v2.13.3/internal/config/types.go#L15-L22
github.comgithub.com/songloft-org/songloft/blob/v2.13.3/mobile/mobile.go#L60-L84
github.comgithub.com/songloft-org/songloft/commit/034fc1c442af5d6bc188642f1fb766af648e014d
github.comgithub.com/songloft-org/songloft/issues/534
hackmd.iohackmd.io/@hieuPenguinnn/songloft-default-admin-credentials-unauth-admin-takeover
vulncheck.comvulncheck.com/advisories/songloft-2.9.0-before-2.13.6-hardcoded-admin-credentials-in-embedded-backend

Frequently asked

questions

It can be exploitable over the network when the Songloft API is reachable from an adjacent network and the fixed administrator credentials are still accepted. It is not necessarily exposed to every remote internet attacker because network placement and service exposure affect reachability.

The attacker generally needs network access to the /api/v1/auth/login endpoint. A valid pre-existing account may not be required when the hardcoded administrator credential pair remains usable.

Remove fixed credentials from the application, provision unique secrets securely, require credential rotation, and restrict administrative functionality to trusted users and networks.

Use secret-management systems, enforce automated secret scanning, test that default credentials are rejected, apply least privilege, and monitor administrative authentication and plugin-management activity.

It can be exploitable over the network when the Songloft API is reachable from an adjacent network and the fixed administrator credentials are still accepted. It is not necessarily exposed to every remote internet attacker because network placement and service exposure affect reachability.

The attacker generally needs network access to the /api/v1/auth/login endpoint. A valid pre-existing account may not be required when the hardcoded administrator credential pair remains usable.

Remove fixed credentials from the application, provision unique secrets securely, require credential rotation, and restrict administrative functionality to trusted users and networks.

Use secret-management systems, enforce automated secret scanning, test that default credentials are rejected, apply least privilege, and monitor administrative authentication and plugin-management activity.

Find out what's already
exploitable in your codebase.