/

CVE-2026-37107

Severity:

CRITICAL RISK

(9.8)

Improper Privilege Management (CWE-269) in HTMLy admin.php

CVE-2026-37107

Deferred

Vulnerability type

Category:

Improper Privilege Management

CWE:

CWE-269

Impact:

Remote Privilege Escalation

Severity:

CRITICAL RISK

(9.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

A critical privilege-management vulnerability in HTMLy v3.1.1 affects the get_feed function in the admin.php component. A remote attacker who can reach the vulnerable functionality may be able to obtain elevated privileges, depending on the application's access-control and deployment conditions.

A critical privilege-management vulnerability in HTMLy v3.1.1 affects the get_feed function in the admin.php component. A remote attacker who can reach the vulnerable functionality may be able to obtain elevated privileges, depending on the application's access-control and deployment conditions.

Affected context

The issue occurs in HTMLy v3.1.1 within the administrative application logic associated with the get_feed function. Risk is present when this function can be reached remotely and privilege checks are missing, incomplete, or applied inconsistently before sensitive administrative behavior is performed. The precise authentication and deployment conditions may affect exploitability.

The issue occurs in HTMLy v3.1.1 within the administrative application logic associated with the get_feed function. Risk is present when this function can be reached remotely and privilege checks are missing, incomplete, or applied inconsistently before sensitive administrative behavior is performed. The precise authentication and deployment conditions may affect exploitability.

Exploit preconditions

  • Attack surface: The remotely reachable HTMLy administrative web component
  • Required access: Network access to the vulnerable functionality; exact authentication requirements are deployment-dependent
  • Trigger point: Processing of requests through the get_feed function in admin.php
  • Why exploitation is possible: Authorization enforcement may not adequately restrict the requested operation or resulting privilege transition
  • Attack surface: The remotely reachable HTMLy administrative web component
  • Required access: Network access to the vulnerable functionality; exact authentication requirements are deployment-dependent
  • Trigger point: Processing of requests through the get_feed function in admin.php
  • Why exploitation is possible: Authorization enforcement may not adequately restrict the requested operation or resulting privilege transition

Why this happens

The underlying bug is an improper privilege-management pattern in which security-sensitive functionality is exposed without reliably verifying that the requesting principal has the required authorization. This maps to CWE-269: Improper Privilege Management, where privileges may be assigned, retained, or used without sufficient enforcement of the intended security policy.

The underlying bug is an improper privilege-management pattern in which security-sensitive functionality is exposed without reliably verifying that the requesting principal has the required authorization. This maps to CWE-269: Improper Privilege Management, where privileges may be assigned, retained, or used without sufficient enforcement of the intended security policy.

Potential impact

  • An attacker may escalate from a lower-privileged account to administrative access
  • Unauthorized users could gain access to restricted application functions
  • Sensitive content or configuration data could be exposed or modified
  • Application integrity and tenant isolation could be weakened
  • Further compromise could occur if administrative capabilities interact with the host environment
  • An attacker may escalate from a lower-privileged account to administrative access
  • Unauthorized users could gain access to restricted application functions
  • Sensitive content or configuration data could be exposed or modified
  • Application integrity and tenant isolation could be weakened
  • Further compromise could occur if administrative capabilities interact with the host environment

General mitigation guidance

Mitigation generally focuses on enforcing authorization at every sensitive operation rather than relying on UI restrictions or caller-supplied role information. Common defensive patterns include centralizing and consistently applying server-side access-control checks, using deny-by-default policies, validating the authenticated identity and intended action, and separating administrative endpoints from general application functionality. Privilege assignments should be minimized, session and role state should not be trusted when supplied by clients, and sensitive actions should use narrowly scoped service accounts and auditable authorization decisions.

Mitigation generally focuses on enforcing authorization at every sensitive operation rather than relying on UI restrictions or caller-supplied role information. Common defensive patterns include centralizing and consistently applying server-side access-control checks, using deny-by-default policies, validating the authenticated identity and intended action, and separating administrative endpoints from general application functionality. Privilege assignments should be minimized, session and role state should not be trusted when supplied by clients, and sensitive actions should use narrowly scoped service accounts and auditable authorization decisions.

How teams detect issues like this

Detection approaches include static analysis for administrative handlers that perform state changes without nearby authorization checks, code review of get_feed and related request-routing paths, and tests that exercise each endpoint under multiple role and authentication states. Policy enforcement can require centralized authorization middleware, deny-by-default route definitions, and security tests for horizontal and vertical privilege boundaries. Runtime monitoring can also flag unexpected administrative actions or privilege changes. Automated code-review and SAST tools may help identify missing or inconsistent access-control patterns.

Detection approaches include static analysis for administrative handlers that perform state changes without nearby authorization checks, code review of get_feed and related request-routing paths, and tests that exercise each endpoint under multiple role and authentication states. Policy enforcement can require centralized authorization middleware, deny-by-default route definitions, and security tests for horizontal and vertical privilege boundaries. Runtime monitoring can also flag unexpected administrative actions or privilege changes. Automated code-review and SAST tools may help identify missing or inconsistent access-control patterns.

Sources

SourceLink
gist.github.comgist.github.com/KyrieKlay/b61a7563d7887d2a01060fcb0bf825eb
github.comgithub.com/danpros/htmly/releases/tag/v3.1.1
htmly.comhtmly.com/

Frequently asked

questions

The description identifies a remote attack surface, but successful exploitation

depends on whether the vulnerable get_feed functionality is reachable and

what authentication and authorization controls are deployed.

The available information does not establish a universal authentication

requirement. Access may depend on the application's configuration, exposed

routes, and the effectiveness of its privilege checks.

Enforce server-side, deny-by-default authorization checks directly before every

privileged operation, and ensure role or privilege data cannot be elevated

through client-controlled input.

Use centralized access-control policies, least-privilege roles, negative

authorization tests, security-focused code review, and monitoring for

unexpected administrative activity.

The description identifies a remote attack surface, but successful exploitation

depends on whether the vulnerable get_feed functionality is reachable and

what authentication and authorization controls are deployed.

The available information does not establish a universal authentication

requirement. Access may depend on the application's configuration, exposed

routes, and the effectiveness of its privilege checks.

Enforce server-side, deny-by-default authorization checks directly before every

privileged operation, and ensure role or privilege data cannot be elevated

through client-controlled input.

Use centralized access-control policies, least-privilege roles, negative

authorization tests, security-focused code review, and monitoring for

unexpected administrative activity.

Find out what's already
exploitable in your codebase.