diff --git a/main/libx11/APKBUILD b/main/libx11/APKBUILD
index dc05afde43aa8baa041fa09d18c4213bdb4a3bf7..dcf3692ce68b07cbd4f4d46baeebd4a0ed0cd175 100644
--- a/main/libx11/APKBUILD
+++ b/main/libx11/APKBUILD
@@ -1,9 +1,9 @@
 # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
 pkgname=libx11
-pkgver=1.6.4
+pkgver=1.6.6
 pkgrel=0
 pkgdesc="X11 client-side library"
-url="http://xorg.freedesktop.org/"
+url="https://xorg.freedesktop.org/"
 arch="all"
 license="custom:XFREE86"
 depends=
@@ -14,6 +14,13 @@ makedepends="$depends_dev util-macros xproto kbproto"
 source="http://xorg.freedesktop.org/releases/individual/lib/libX11-$pkgver.tar.bz2"
 
 builddir="$srcdir"/libX11-$pkgver
+
+# secfixes:
+#   1.6.6-r0:
+#   - CVE-2018-14598
+#   - CVE-2018-14599
+#   - CVE-2018-14600
+
 build() {
 	cd "$builddir"
 	./configure \
@@ -34,6 +41,6 @@ package() {
 	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
 }
 
-md5sums="6d54227082f3aa2c596f0b3a3fbb9175  libX11-1.6.4.tar.bz2"
-sha256sums="b7c748be3aa16ec2cbd81edc847e9b6ee03f88143ab270fb59f58a044d34e441  libX11-1.6.4.tar.bz2"
-sha512sums="1fb2ab1f16af14f03ad147ecf2a43c0137c528b9f7ad7de12c47a5861159313260c40122e8271ebd53bf06636d84a4766e06354c7791780f623ba316bed46e92  libX11-1.6.4.tar.bz2"
+md5sums="6b0f83e851b3b469dd660f3a95ac3e42  libX11-1.6.6.tar.bz2"
+sha256sums="65fe181d40ec77f45417710c6a67431814ab252d21c2e85c75dd1ed568af414f  libX11-1.6.6.tar.bz2"
+sha512sums="9866dc6b158b15a96efe140b6fa68a775889a37e5565a126216211fee63868e02629a9f9f41816d590ef150560f43b8864010a77a6318c9109e76aec1d21b4d7  libX11-1.6.6.tar.bz2"