Vulnerabilities in pkg:maven/cc.tweaked/cc-tweaked-1.20.6-core

PACKAGE
Advisory Identifier: GHSA-5jh9-2h63-pw4q
Advisory Summary

CVE-2026-47695 is a HIGH cc-tweaked has an ssrf protection vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Cc tweaked 1.21 core libraries in the Maven ecosystem. The issue involves cc-tweaked has an ssrf protection bypass with nat64. Remediation is available by upgrading affected packages to version 1.119.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/cc.tweaked/cc-tweaked-1.20.6-core

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/cc.tweaked/cc-tweaked-1.20.6-core. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-5jh9-2h63-pw4q CVE-2026-47695 HIGH CC-Tweaked has an SSRF Protection Bypass with NAT64

CVE-2026-47695 at a Glance

CVE Identifier CVE-2026-47695
GHSA Identifier GHSA-5jh9-2h63-pw4q
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product Cc tweaked 1.21 core
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2026-47695

To remediate this vulnerability, upgrade all affected Cc tweaked 1.21 core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

cc.tweaked:cc-tweaked-1.21-core fixed: 1.119.0
<dependency>
    <groupId>cc.tweaked</groupId>
    <artifactId>cc-tweaked-1.21-core</artifactId>
    <version>1.119.0</version>
</dependency>
cc.tweaked:cc-tweaked-1.20.1-core fixed: 1.119.0
<dependency>
    <groupId>cc.tweaked</groupId>
    <artifactId>cc-tweaked-1.20.1-core</artifactId>
    <version>1.119.0</version>
</dependency>
cc.tweaked:cc-tweaked-1.20.4-core fixed: 1.119.0
<dependency>
    <groupId>cc.tweaked</groupId>
    <artifactId>cc-tweaked-1.20.4-core</artifactId>
    <version>1.119.0</version>
</dependency>
cc.tweaked:cc-tweaked-1.20.5-core fixed: 1.119.0
<dependency>
    <groupId>cc.tweaked</groupId>
    <artifactId>cc-tweaked-1.20.5-core</artifactId>
    <version>1.119.0</version>
</dependency>
cc.tweaked:cc-tweaked-1.20.6-core fixed: 1.119.0
<dependency>
    <groupId>cc.tweaked</groupId>
    <artifactId>cc-tweaked-1.20.6-core</artifactId>
    <version>1.119.0</version>
</dependency>
cc.tweaked:cc-tweaked-1.19.3-core fixed: 1.119.0
<dependency>
    <groupId>cc.tweaked</groupId>
    <artifactId>cc-tweaked-1.19.3-core</artifactId>
    <version>1.119.0</version>
</dependency>
cc.tweaked:cc-tweaked-1.19.4-core fixed: 1.119.0
<dependency>
    <groupId>cc.tweaked</groupId>
    <artifactId>cc-tweaked-1.19.4-core</artifactId>
    <version>1.119.0</version>
</dependency>
cc.tweaked:cc-tweaked-1.20-core fixed: 1.119.0
<dependency>
    <groupId>cc.tweaked</groupId>
    <artifactId>cc-tweaked-1.20-core</artifactId>
    <version>1.119.0</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=cc.tweaked

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2026-47695, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=cc.tweaked

Analyze the terminal output to locate any version of Cc tweaked 1.21 core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.119.0), your application is affected.

Note: The mvn dependency:tree -Dincludes=cc.tweaked command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Cc tweaked 1.21 core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary CC-Tweaked's HTTP API (`http.request`, `http.websocket`) blocks requests to private network ranges to prevent server-side request forgery (SSRF). This protection can be bypassed on IPv6-capable servers using NAT64 well-known prefix addresses (`64:ff9b::/96`). An attacker who can execute Lua code can reach any internal IPv4 service that the filter is intended to block, by addressing it as `http://[64:ff9b::<ipv4-as-hex>]/` instead of its direct IPv4 address. This affects any CC-Tweaked deployment on a network with NAT64 routing — a configuration that is standard on AWS, GCP, and other cloud platforms when using IPv6-only subnets. ### Details The IP filter in [`PrivatePattern.matches()` (AddressPredicate.java#L121–L130)](https://github.com/cc-tweaked/CC-Tweaked/blob/663ffed4337da0dc3d82ace1e813e3c78b4a8c99/projects/core/src/main/java/dan200/computercraft/core/apis/http/options/AddressPredicate.java#L121-L130) blocks private network ranges by calling Java's standard `InetAddress` classification methods: ```java public boolean matches(InetAddress socketAddress) { return socketAddress.isAnyLocalAddress() || socketAddress.isLoopbackAddress() || socketAddress.isLinkLocalAddress() || socketAddress.isSiteLocalAddress() || socketAddress.isMulticastAddress() || isUniqueLocalAddress(socketAddress) || isCarrierGradeNatAddress(socketAddress) || additionalAddresses.contains(socketAddress); } ``` When a NAT64 address such as `64:ff9b::c0a8:0101` (encoding `192.168.1.1`) is resolved via `new InetSocketAddress("64:ff9b::c0a8:0101", 80)`, Java returns an `Inet6Address`. Every method above returns `false` for this address — the `64:ff9b::/96` prefix is not recognised by any of Java's built-in classification methods. The address passes the filter and CC-Tweaked opens a connection. On a network with a `64:ff9b::/96 → NAT Gateway` route, that connection is translated at the network level: the embedded IPv4 address is extracted and the packet is forwarded to `192.168.1.1:80`. The internal service receives a normal IPv4 TCP connection. The existing 6to4 (`2002::/16`) mitigation in [`AddressRule.java#L74–L75`](https://github.com/cc-tweaked/CC-Tweaked/blob/663ffed4337da0dc3d82ace1e813e3c78b4a8c99/projects/core/src/main/java/dan200/computercraft/core/apis/http/options/AddressRule.java#L74-L75) does not cover the NAT64 prefix. No other check catches `64:ff9b::/96`. ### PoC **Preconditions** (all three required): 1. The server running CC-Tweaked has an IPv6 address assigned 2. The network has a NAT Gateway (or equivalent) 3. The route table contains `64:ff9b::/96 → NAT Gateway` — the standard AWS/GCP configuration for IPv6-only subnets with outbound IPv4 access ([AWS documentation](https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateway-nat64-dns64.html)) **Lua payload** (targets an internal service at `10.0.1.17:8888`): ```lua -- 10.0.1.17 = 0x0a000111, expressed as NAT64: 64:ff9b::0a00:0111 local res = http.request("http://[64:ff9b::0a00:0111]:8888/") if res then print(res.readAll()) end ``` **Conversion formula** — for any blocked IPv4 `a.b.c.d`, the bypass address is: ``` 64:ff9b::<hex(a)><hex(b)>:<hex(c)><hex(d)> ``` ### Impact This is a server-side request forgery (SSRF) vulnerability. Any user able to execute Lua code on a CC-Tweaked computer — including players on a public server — can use it to send HTTP requests to internal IPv4 services that the HTTP filter is designed to block. On cloud-hosted servers (AWS, GCP, Azure) using IPv6-only subnets with NAT64, which is an [increasingly common configuration following AWS's February 2024 public IPv4 pricing change](https://aws.amazon.com/blogs/aws/new-aws-public-ipv4-address-charge-public-ip-insights/), this includes other instances in the VPC, internal databases, and cloud management APIs. **Suggested fix:** add a check for the NAT64 well-known prefix in [`PrivatePattern.matches()`](https://github.com/cc-tweaked/CC-Tweaked/blob/663ffed4337da0dc3d82ace1e813e3c78b4a8c99/projects/core/src/main/java/dan200/computercraft/core/apis/http/options/AddressPredicate.java#L121-L130): ```java || isNAT64Address(socketAddress) private boolean isNAT64Address(InetAddress address) { if (!(address instanceof Inet6Address)) return false; byte[] b = address.getAddress(); // 64:ff9b::/96 — NAT64 well-known prefix (RFC 6052) return b[0] == 0x00 && b[1] == 0x64 && b[2] == (byte) 0xff && b[3] == (byte) 0x9b && b[4] == 0 && b[5] == 0 && b[6] == 0 && b[7] == 0 && b[8] == 0 && b[9] == 0 && b[10] == 0 && b[11] == 0; } ``` This vulnerability does not seem to work on servers running on modern versions of MacOS.

CVE-2026-47695 Affected Cc tweaked 1.21 core Versions

8 component(s)
Fixed Versions:
1.119.0
Product / Package Ecosystem Affected Versions Fixed Version
cc.tweaked:cc-tweaked-1.21-core
Maven
< 1.119.0
1.119.0
cc.tweaked:cc-tweaked-1.20.1-core
Maven
< 1.119.0
1.119.0
cc.tweaked:cc-tweaked-1.20.4-core
Maven
< 1.119.0
1.119.0
cc.tweaked:cc-tweaked-1.20.5-core
Maven
< 1.119.0
1.119.0
cc.tweaked:cc-tweaked-1.20.6-core
Maven
< 1.119.0
1.119.0
cc.tweaked:cc-tweaked-1.19.3-core
Maven
< 1.119.0
1.119.0
cc.tweaked:cc-tweaked-1.19.4-core
Maven
< 1.119.0
1.119.0
cc.tweaked:cc-tweaked-1.20-core
Maven
< 1.119.0
1.119.0

References

Frequently Asked Questions

What is CVE-2026-47695?
CVE-2026-47695 is a security vulnerability in Cc tweaked 1.21 core involving CC-Tweaked has an SSRF Protection Bypass with NAT64 under CWE-918: Server-Side Request Forgery (SSRF).
Which Cc tweaked 1.21 core versions are affected?
Affected versions include releases prior to 1.119.0 across affected packages: cc.tweaked:cc-tweaked-1.21-core, cc.tweaked:cc-tweaked-1.20.1-core, cc.tweaked:cc-tweaked-1.20.4-core, cc.tweaked:cc-tweaked-1.20.5-core, cc.tweaked:cc-tweaked-1.20.6-core, cc.tweaked:cc-tweaked-1.19.3-core, cc.tweaked:cc-tweaked-1.19.4-core, cc.tweaked:cc-tweaked-1.20-core.
What version fixes CVE-2026-47695?
Upgrading to 1.119.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is cc-tweaked-1.21-core affected?
Yes, cc.tweaked:cc-tweaked-1.21-core is affected in releases prior to 1.119.0. Upgrade your dependency to 1.119.0 or later.
Is cc-tweaked-1.20.1-core affected?
Yes, cc.tweaked:cc-tweaked-1.20.1-core is affected in releases prior to 1.119.0. Upgrade your dependency to 1.119.0 or later.
What CWE is associated with CVE-2026-47695?
CVE-2026-47695 is classified under CWE-918: Server-Side Request Forgery (SSRF) (The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.).
How can I check Maven dependencies for CVE-2026-47695?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=cc.tweaked'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-5jh9-2h63-pw4q",
  "modified" : "2026-05-29T20:21:12Z",
  "published" : "2026-05-29T20:21:12Z",
  "aliases" : [ "CVE-2026-47695" ],
  "summary" : "CC-Tweaked has an SSRF Protection Bypass with NAT64",
  "details" : "### Summary\n\nCC-Tweaked's HTTP API (`http.request`, `http.websocket`) blocks requests to private network ranges to prevent server-side request forgery (SSRF). This protection can be bypassed on IPv6-capable servers using NAT64 well-known prefix addresses (`64:ff9b::/96`). An attacker who can execute Lua code can reach any internal IPv4 service that the filter is intended to block, by addressing it as `http://[64:ff9b::<ipv4-as-hex>]/` instead of its direct IPv4 address. This affects any CC-Tweaked deployment on a network with NAT64 routing — a configuration that is standard on AWS, GCP, and other cloud platforms when using IPv6-only subnets.\n\n### Details\n\nThe IP filter in [`PrivatePattern.matches()` (AddressPredicate.java#L121–L130)](https://github.com/cc-tweaked/CC-Tweaked/blob/663ffed4337da0dc3d82ace1e813e3c78b4a8c99/projects/core/src/main/java/dan200/computercraft/core/apis/http/options/AddressPredicate.java#L121-L130) blocks private network ranges by calling Java's standard `InetAddress` classification methods:\n\n```java\npublic boolean matches(InetAddress socketAddress) {\n    return socketAddress.isAnyLocalAddress()\n        || socketAddress.isLoopbackAddress()\n        || socketAddress.isLinkLocalAddress()\n        || socketAddress.isSiteLocalAddress()\n        || socketAddress.isMulticastAddress()\n        || isUniqueLocalAddress(socketAddress)\n        || isCarrierGradeNatAddress(socketAddress)\n        || additionalAddresses.contains(socketAddress);\n}\n```\n\nWhen a NAT64 address such as `64:ff9b::c0a8:0101` (encoding `192.168.1.1`) is resolved via `new InetSocketAddress(\"64:ff9b::c0a8:0101\", 80)`, Java returns an `Inet6Address`. Every method above returns `false` for this address — the `64:ff9b::/96` prefix is not recognised by any of Java's built-in classification methods. The address passes the filter and CC-Tweaked opens a connection.\n\nOn a network with a `64:ff9b::/96 → NAT Gateway` route, that connection is translated at the network level: the embedded IPv4 address is extracted and the packet is forwarded to `192.168.1.1:80`. The internal service receives a normal IPv4 TCP connection.\n\nThe existing 6to4 (`2002::/16`) mitigation in [`AddressRule.java#L74–L75`](https://github.com/cc-tweaked/CC-Tweaked/blob/663ffed4337da0dc3d82ace1e813e3c78b4a8c99/projects/core/src/main/java/dan200/computercraft/core/apis/http/options/AddressRule.java#L74-L75) does not cover the NAT64 prefix. No other check catches `64:ff9b::/96`.\n\n### PoC\n\n**Preconditions** (all three required):\n1. The server running CC-Tweaked has an IPv6 address assigned\n2. The network has a NAT Gateway (or equivalent)\n3. The route table contains `64:ff9b::/96 → NAT Gateway` — the standard AWS/GCP configuration for IPv6-only subnets with outbound IPv4 access ([AWS documentation](https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateway-nat64-dns64.html))\n\n**Lua payload** (targets an internal service at `10.0.1.17:8888`):\n```lua\n-- 10.0.1.17 = 0x0a000111, expressed as NAT64: 64:ff9b::0a00:0111\nlocal res = http.request(\"http://[64:ff9b::0a00:0111]:8888/\")\nif res then print(res.readAll()) end\n```\n\n**Conversion formula** — for any blocked IPv4 `a.b.c.d`, the bypass address is:\n```\n64:ff9b::<hex(a)><hex(b)>:<hex(c)><hex(d)>\n```\n\n### Impact\n\nThis is a server-side request forgery (SSRF) vulnerability. Any user able to execute Lua code on a CC-Tweaked computer — including players on a public server — can use it to send HTTP requests to internal IPv4 services that the HTTP filter is designed to block. On cloud-hosted servers (AWS, GCP, Azure) using IPv6-only subnets with NAT64, which is an [increasingly common configuration following AWS's February 2024 public IPv4 pricing change](https://aws.amazon.com/blogs/aws/new-aws-public-ipv4-address-charge-public-ip-insights/), this includes other instances in the VPC, internal databases, and cloud management APIs.\n\n**Suggested fix:** add a check for the NAT64 well-known prefix in [`PrivatePattern.matches()`](https://github.com/cc-tweaked/CC-Tweaked/blob/663ffed4337da0dc3d82ace1e813e3c78b4a8c99/projects/core/src/main/java/dan200/computercraft/core/apis/http/options/AddressPredicate.java#L121-L130):\n\n```java\n|| isNAT64Address(socketAddress)\n\nprivate boolean isNAT64Address(InetAddress address) {\n    if (!(address instanceof Inet6Address)) return false;\n    byte[] b = address.getAddress();\n    // 64:ff9b::/96 — NAT64 well-known prefix (RFC 6052)\n    return b[0] == 0x00 && b[1] == 0x64 &&\n           b[2] == (byte) 0xff && b[3] == (byte) 0x9b &&\n           b[4] == 0 && b[5] == 0 && b[6] == 0 && b[7] == 0 &&\n           b[8] == 0 && b[9] == 0 && b[10] == 0 && b[11] == 0;\n}\n```\n\nThis vulnerability does not seem to work on servers running on modern versions of MacOS.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "cc.tweaked:cc-tweaked-1.21-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.119.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "cc.tweaked:cc-tweaked-1.20.1-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.119.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "cc.tweaked:cc-tweaked-1.20.4-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.119.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "cc.tweaked:cc-tweaked-1.20.5-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.119.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "cc.tweaked:cc-tweaked-1.20.6-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.119.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "cc.tweaked:cc-tweaked-1.19.3-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.119.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "cc.tweaked:cc-tweaked-1.19.4-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.119.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "cc.tweaked:cc-tweaked-1.20-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.119.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/cc-tweaked/CC-Tweaked/security/advisories/GHSA-5jh9-2h63-pw4q"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/cc-tweaked/CC-Tweaked"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-918" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-29T20:21:12Z",
    "nvd_published_at" : null
  }
}