-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 NEFARIOUSPLAN-CANONICAL-V1 {"body_md":"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.\n\nThe 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.\n\n## The converter is twenty-seven lines and zero validators\n\nPre-patch `fesod-sheet/src/main/java/org/apache/fesod/sheet/converters/url/UrlImageConverter.java` at tag `2.0.1-incubating`, the entire class:\n\n```java\npublic class UrlImageConverter implements Converter {\n public static int urlConnectTimeout = 1000;\n public static int urlReadTimeout = 5000;\n\n @Override\n public Class supportJavaTypeKey() {\n return URL.class;\n }\n\n @Override\n public WriteCellData convertToExcelData(\n URL value, ExcelContentProperty contentProperty, GlobalConfiguration globalConfiguration)\n throws IOException {\n InputStream inputStream = null;\n try {\n URLConnection urlConnection = value.openConnection();\n urlConnection.setConnectTimeout(urlConnectTimeout);\n urlConnection.setReadTimeout(urlReadTimeout);\n inputStream = urlConnection.getInputStream();\n byte[] bytes = IoUtils.toByteArray(inputStream);\n return new WriteCellData<>(bytes);\n } finally {\n if (inputStream != null) {\n inputStream.close();\n }\n }\n }\n}\n```\n\nNo 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.\n\nThe reachability story is the documented use case. EasyExcel and its descendants register `Converter` 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.\n\nThe 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.\n\n## The patch is the size of what was missing\n\nPR #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:\n\n```java\npublic enum SchemePolicy {\n HTTP(Collections.singleton(\"http\")),\n HTTPS(Collections.singleton(\"https\")),\n HTTP_OR_HTTPS(new HashSet<>(Arrays.asList(\"http\", \"https\")));\n ...\n}\n```\n\nThe 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\")`.\n\n`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.\n\nThe new `UrlImageConverter#validateUrl` rejects every address that resolves to a private or otherwise restricted range:\n\n```java\nprivate boolean isRestrictedIpv4Address(InetAddress address) {\n if (!(address instanceof Inet4Address)) {\n return false;\n }\n byte[] bytes = address.getAddress();\n int first = bytes[0] & 0xFF;\n int second = bytes[1] & 0xFF;\n return first == 0\n || first == 10\n || first == 127\n || (first == 100 && second >= 64 && second <= 127)\n || (first == 169 && second == 254)\n || (first == 172 && second >= 16 && second <= 31)\n || (first == 192 && second == 168)\n || first >= 224;\n}\n```\n\nRead 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.\n\nThe 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.\n\n## The fork is downstream of an archived project\n\nThe patched file's header carries the lineage in a comment:\n\n```\nThis file is part of the Apache Fesod (Incubating) project, which was derived from Alibaba EasyExcel.\n\nCopyright (C) 2018-2024 Alibaba Group Holding Ltd.\n```\n\nThe 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.\n\nAlibaba 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.\n\nMaven 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 `easyexcel` 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.\n\n## The CVE scope is the patcher\n\nThe patch author is Shuxin Pan (`psxjoy@apache.org`), 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.\n\nAlibaba 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.\n\nA 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.\n\nThe patch is in the fork. The bug is in everything the fork came from.\n\nPoC: [oss-security CVE-2026-49328 advisory](https://seclists.org/oss-sec/2026/q2/765)","closing_line":"The patch is in the fork. The bug is in everything the fork came from.","hook_md":"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.\n\nThe 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.\nThe patch is in the fork. The bug is in everything the fork came from.","post_id":592,"slug":"apache-fesod-cve-2026-49328-easyexcel-still-ships-it","title":"CVE-2026-49328: Apache Fesod Patched The SSRF. Alibaba EasyExcel Still Ships It.","type":"initial","unreadable_sentence":"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."} -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQRf0htP5+SjynlxywneZjl4jgkQJgUCasKTeQAKCRDeZjl4jgkQ JpSrAQDj/QwkJgSKzkZGs76RVfBX9Y/6KdWThGk43nFZ2uSgcAEA2fAsenrcdTSE qbSIuJ/RWCypAZHA9CYOFVcdCRXtBAM= =eVAU -----END PGP SIGNATURE-----