//nefariousplan

CVE-2026-49328: Apache Fesod Patched The SSRF. Alibaba EasyExcel Still Ships It.

vendor

pattern

cve

proof of concept

Apache Fesod 2.0.2-incubating ships a class called UrlImageConverter whose body is an SSRF validator: a scheme allowlist, a host resolver that walks every returned InetAddress, an IPv4 and IPv6 private-range rejector, a redirect cap, a body-size cap, and a magic-byte image-type check. Apache Fesod 2.0.1-incubating shipped a class called UrlImageConverter whose body was value.openConnection().getInputStream(). The diff between the two is CVE-2026-49328 and the missing validator the catalog has now decided was the bug.

The structurally identical pre-patch class, modulo the package rename com.alibaba.excel.converters.url to org.apache.fesod.sheet.converters.url and a different line break in the method signature, is on Alibaba EasyExcel's master branch right now. The Javadoc above the class says @author Jiaju Zhuang @since 2.1.1. Alibaba archived the EasyExcel repository on September 4, 2025. The CVE record covers fesod-sheet before 2.0.2-incubating. It does not cover the project the code came from. The patch is in the fork. The bug is in everything the fork came from.

Apache Fesod 2.0.2-incubating ships a class called UrlImageConverter whose body is an SSRF validator: a scheme allowlist, a host resolver that walks every returned InetAddress, an IPv4 and IPv6 private-range rejector, a redirect cap, a body-size cap, and a magic-byte image-type check. Apache Fesod 2.0.1-incubating shipped a class called UrlImageConverter whose body was value.openConnection().getInputStream(). The diff between the two is CVE-2026-49328 and the missing validator the catalog has now decided was the bug.

The structurally identical pre-patch class, modulo the package rename com.alibaba.excel.converters.url to org.apache.fesod.sheet.converters.url and a different line break in the method signature, is on Alibaba EasyExcel's master branch right now. The Javadoc above the class says @author Jiaju Zhuang @since 2.1.1. Alibaba archived the EasyExcel repository on September 4, 2025. The CVE record covers fesod-sheet before 2.0.2-incubating. It does not cover the project the code came from.

The converter is twenty-seven lines and zero validators

Pre-patch fesod-sheet/src/main/java/org/apache/fesod/sheet/converters/url/UrlImageConverter.java at tag 2.0.1-incubating, the entire class:

public class UrlImageConverter implements Converter<URL> {
    public static int urlConnectTimeout = 1000;
    public static int urlReadTimeout = 5000;

    @Override
    public Class<?> supportJavaTypeKey() {
        return URL.class;
    }

    @Override
    public WriteCellData<?> convertToExcelData(
            URL value, ExcelContentProperty contentProperty, GlobalConfiguration globalConfiguration)
            throws IOException {
        InputStream inputStream = null;
        try {
            URLConnection urlConnection = value.openConnection();
            urlConnection.setConnectTimeout(urlConnectTimeout);
            urlConnection.setReadTimeout(urlReadTimeout);
            inputStream = urlConnection.getInputStream();
            byte[] bytes = IoUtils.toByteArray(inputStream);
            return new WriteCellData<>(bytes);
        } finally {
            if (inputStream != null) {
                inputStream.close();
            }
        }
    }
}

No scheme check. No host check. No size limit. No content-type check. value.openConnection() is called on whatever URL arrives. The Java URL constructor parsed the input for grammar; the converter trusted what grammar produced.

The reachability story is the documented use case. EasyExcel and its descendants register Converter<URL> automatically for any POJO field typed as java.net.URL. An application that writes a spreadsheet whose row class carries a caller-influenced URL field (an image URL on a product export, a profile picture on a user dump, a logo URL on an invoice template) is one row write away from urlConnection.getInputStream() against whatever the caller supplied. The CVSS vector says AV:N/AC:L/PR:N/UI:N/C:L/I:N/A:N. Unauthenticated, network-reachable, confidentiality only. That is what the converter does on a URL("http://169.254.169.254/latest/meta-data/iam/security-credentials/") value: the GET fires, the bytes come back, the bytes go into a spreadsheet cell as image data, the spreadsheet goes back to the caller.

The CVE record describes the mechanism as "outbound network requests to internal or otherwise restricted resources." That is the abstraction. The mechanism in the code is that the converter has no idea what a restricted resource is. There is no allowlist to bypass. There is no denylist to evade. The check is the absence of a check.

The patch is the size of what was missing

PR #917, merged May 14, 2026, adds three classes alongside the converter and rewrites the converter to use them. SchemePolicy is an enum with three members:

public enum SchemePolicy {
    HTTP(Collections.singleton("http")),
    HTTPS(Collections.singleton("https")),
    HTTP_OR_HTTPS(new HashSet<>(Arrays.asList("http", "https")));
    ...
}

The Java URL grammar admits file:, jar:, ftp:, jrt:, and anything else the running JVM has a URLStreamHandler registered for. The enum names the three the converter will now accept. Everything else is IOException("URL image protocol is not allowed").

CidrBlock is a hundred-line parser-and-matcher for CIDR ranges, so operators who actually do need to fetch images from 10.0.0.0/8 or similar can opt back into specific subnets without disarming the whole gate. UrlImageFetchPolicy is the immutable builder that holds the scheme set, the per-host and per-CIDR allowlists, the private-network flag, the redirect cap, and the max-bytes cap. Defaults: schemes restricted to HTTP and HTTPS, private networks disallowed, three redirects, ten megabytes.

The new UrlImageConverter#validateUrl rejects every address that resolves to a private or otherwise restricted range:

private boolean isRestrictedIpv4Address(InetAddress address) {
    if (!(address instanceof Inet4Address)) {
        return false;
    }
    byte[] bytes = address.getAddress();
    int first = bytes[0] & 0xFF;
    int second = bytes[1] & 0xFF;
    return first == 0
            || first == 10
            || first == 127
            || (first == 100 && second >= 64 && second <= 127)
            || (first == 169 && second == 254)
            || (first == 172 && second >= 16 && second <= 31)
            || (first == 192 && second == 168)
            || first >= 224;
}

Read the list of rejected ranges as evidence of how much the unpatched converter would have followed. The cloud-metadata endpoint at 169.254.169.254 is in the 169.254.0.0/16 link-local range. The loopback host that fronts every locally-bound admin panel is 127.0.0.0/8. The ten-dot range that hosts internal services in every cloud VPC is 10.0.0.0/8. The fix is not subtle.

The validator runs once per URL and once per redirect. The redirect handler explicitly calls setInstanceFollowRedirects(false) and walks the chain by hand, re-validating the resolved Location against the same policy each hop, because Java's default redirect handler will happily follow a 302 from http://attacker.example.com to http://127.0.0.1:8080/admin without informing anyone. The body reader caps at the policy's maxImageBytes. The response bytes get handed to FileTypeUtils.getImageType, which inspects the magic bytes; a response that is not a recognized image format becomes IOException("URL image data is not a supported image type"). The pre-patch converter would have happily embedded the JSON of an IAM role's AccessKeyId and SecretAccessKey into the spreadsheet as image bytes; the post-patch converter throws on the Content-Type mismatch and the request never even returns its body to the caller.

The fork is downstream of an archived project

The patched file's header carries the lineage in a comment:

This file is part of the Apache Fesod (Incubating) project, which was derived from Alibaba EasyExcel.

Copyright (C) 2018-2024 Alibaba Group Holding Ltd.

The git log inside the Fesod repository records the fork point. Two commits by jipengfei-jpf on November 20 and 25 of 2024, both with the message easyexcel plus init. Two days later, commit 46b9264 renames the project: 修改项目名easyexcel-plus为FastExcel, which translates to "rename project easyexcel-plus to FastExcel." jipengfei-jpf is the GitHub handle of one of the original EasyExcel maintainers. The fork was carved off in November 2024, renamed FastExcel, then donated to the Apache Software Foundation and renamed again to Fesod.

Alibaba EasyExcel was archived on September 4, 2025. The repository carries a banner: "This repository was archived by the owner on Sep 4, 2025. It is now read-only." The README's farewell message commits to "bug fixes" and "ensuring basic functionality remains stable" while declining to name FastExcel, Fesod, or any other successor. Its master branch still serves the pre-patch converter at easyexcel-core/src/main/java/com/alibaba/excel/converters/url/UrlImageConverter.java, with the @since 2.1.1 Javadoc tag intact. EasyExcel 2.1.1 predates the project's 2022 GitHub release flood; this code has been the project's image converter for the entire 2.x, 3.x, and 4.x lines. The last release, 4.0.3, was cut on September 11, 2024.

Maven Central installs of com.alibaba:easyexcel still resolve. The 33,700-star repository's archive notice is a maintenance-mode signal, not a delisting. Every Spring Boot service in the Chinese Java enterprise ecosystem that pinned <artifactId>easyexcel</artifactId> for the last five years and treated the archive banner as a slow-rolling migration prompt is running the same URLConnection.getInputStream() against the same caller-supplied URL that Apache spent ten Java files refactoring around.

The CVE scope is the patcher

The patch author is Shuxin Pan ([email protected]), an Apache committer. The reporter on oss-security is Shuxin Pan. The researcher credited as finder is Xu Han. Xu Han found the bug in Apache Fesod and reported it to the Apache project that owns the code today. Apache patched. The CVE record reflects what Apache patched.

Alibaba EasyExcel was archived eight months before the CVE was assigned. There is no security contact for an archived repository. There is no maintainer to triage a report against a project that has stopped accepting commits. The MITRE assignment process works because somebody is on the other end of it. The same code in a project where nobody is on the other end gets nothing. This is the cve-scope-is-the-patcher shape: the affected-products field of the catalog entry names the project that responded, and the install base that runs the same code outside that project is not on the list because no one filed.

A defender who reads CVE-2026-49328 and patches Fesod has patched the smallest install base in the lineage. Apache Fesod 2.0.2-incubating, the project's first stable Apache release, is six months old. The largest install base, every application that pinned com.alibaba:easyexcel while the 33,700-star repository was the default Java spreadsheet library in China, is consuming the same primitive and is not on any list. The CVE record covers fesod-sheet before 2.0.2-incubating. It does not name com.alibaba:easyexcel, the artifact the byte-equivalent code shipped in for five years. The affected-products field tells you who fixed the bug. It does not tell you where the bug runs.

The patch is in the fork. The bug is in everything the fork came from.

PoC: oss-security CVE-2026-49328 advisory

The patch is in the fork. The bug is in everything the fork came from.