Summary
Label Studio's image-bearing export workflows can make server-side requests to URLs supplied in task data. An authenticated user who can import tasks and trigger affected exports may read responses from internal services; spoofed Host information may also expose an organization owner's API token.
Label Studio's image-bearing export workflows can make server-side requests to URLs supplied in task data. An authenticated user who can import tasks and trigger affected exports may read responses from internal services; spoofed Host information may also expose an organization owner's API token.
Affected context
The issue affects Label Studio before 1.23.2 and label-studio-sdk before 2.1.2 when image-bearing exports, such as YOLO or COCO exports with images, fetch image URLs supplied in task data. It becomes risky when authenticated users can provide or influence those URLs and the server can reach internal services. Host-header handling may also create a risk of exposing an organization owner's API token.
The issue affects Label Studio before 1.23.2 and label-studio-sdk before 2.1.2 when image-bearing exports, such as YOLO or COCO exports with images, fetch image URLs supplied in task data. It becomes risky when authenticated users can provide or influence those URLs and the server can reach internal services. Host-header handling may also create a risk of exposing an organization owner's API token.
Exploit preconditions
- Attack surface: Image-bearing YOLO or COCO export workflows that fetch image URLs.
- Required access: An authenticated account with permission to import tasks and initiate or access affected exports.
- Trigger point: An export processes a task whose
data.imagevalue points to a URL. - Why exploitation is possible: The server makes requests to user-influenced URLs without sufficiently restricting destinations or response handling; spoofed Host information may affect where sensitive token data is sent.
- Attack surface: Image-bearing YOLO or COCO export workflows that fetch image URLs.
- Required access: An authenticated account with permission to import tasks and initiate or access affected exports.
- Trigger point: An export processes a task whose
data.imagevalue points to a URL. - Why exploitation is possible: The server makes requests to user-influenced URLs without sufficiently restricting destinations or response handling; spoofed Host information may affect where sensitive token data is sent.
Why this happens
The underlying issue is server-side request forgery, mapped to CWE-918. The export workflow treats a user-controlled image URL as a destination for server-originated requests without adequately constraining the destination and related request behavior. This can give the server access to internal endpoints that the requesting user cannot reach directly.
The underlying issue is server-side request forgery, mapped to CWE-918. The export workflow treats a user-controlled image URL as a destination for server-originated requests without adequately constraining the destination and related request behavior. This can give the server access to internal endpoints that the requesting user cannot reach directly.
Potential impact
- An attacker may read responses from internal services reachable by the Label Studio server.
- Internal service information could be exposed or used to support further attacks.
- Spoofed Host information could cause an organization owner's API token to be sent to an unintended destination.
- Compromised credentials could enable further access within the organization, depending on token permissions.
- An attacker may read responses from internal services reachable by the Label Studio server.
- Internal service information could be exposed or used to support further attacks.
- Spoofed Host information could cause an organization owner's API token to be sent to an unintended destination.
- Compromised credentials could enable further access within the organization, depending on token permissions.
General mitigation guidance
Defensive patterns include validating image URLs against explicit schemes and trusted destination allowlists, and blocking requests to loopback, private, link-local, and other restricted address ranges. Apply egress network controls so export workers can reach only required services, and re-check destinations after DNS resolution and redirects. Avoid deriving sensitive request destinations from untrusted Host headers; keep credentials out of requests to user-supplied URLs, and use least-privilege tokens and isolated export workers.
Defensive patterns include validating image URLs against explicit schemes and trusted destination allowlists, and blocking requests to loopback, private, link-local, and other restricted address ranges. Apply egress network controls so export workers can reach only required services, and re-check destinations after DNS resolution and redirects. Avoid deriving sensitive request destinations from untrusted Host headers; keep credentials out of requests to user-supplied URLs, and use least-privilege tokens and isolated export workers.
How teams detect issues like this
- Review export code for server-side HTTP clients that consume task-controlled URLs.
- Use static analysis to flag network requests whose destinations originate from imported task data or other untrusted sources.
- Monitor export-worker egress for requests to private, loopback, link-local, or otherwise unexpected destinations.
- Audit handling of Host headers and API tokens, and enforce policies that restrict outbound network access from export workers.
- Automated code review tools can help identify URL validation and request-routing risks.
- Review export code for server-side HTTP clients that consume task-controlled URLs.
- Use static analysis to flag network requests whose destinations originate from imported task data or other untrusted sources.
- Monitor export-worker egress for requests to private, loopback, link-local, or otherwise unexpected destinations.
- Audit handling of Host headers and API tokens, and enforce policies that restrict outbound network access from export workers.
- Automated code review tools can help identify URL validation and request-routing risks.

